Hi Fellow PHP builders,
i have a problem with an array and would appreciate any help.
I have Description. Description is passed though a $POST.
Description would contain for example 12.23 4. All i want is the last number. So in this case 4. Im not sure how to use an array to make it stop at a blank space or just read the last number (whether the number is 4 or 400)
Im trying something like below but if anyone can lead me on the right direction i will be very very grateful
if (description!="")
{
var arrDescription = description.split(separator);
for (var z = 0; z < description.length; z++)
{
if (arrDescription=" ")
{
newdescription=description;
}
}
}
Thank you Bob Php builder