I have a string in the pattern similar to:
john.smith 9.5 9.49296 Active john.s@site.com +123456789
and I just want to echo “9.5” out of it which is next to “smith” using PHP.
Update:
sorry guys…just noticed that it is an xml file, couldn’t see properly in safari, checked in firefox and it is displayed as:
<GetUserInfo>
<Customer>john.smith</Customer>
<Balance>9.5</Balance>
<SpecificBalance>9.49296</SpecificBalance>
<Status>False</Status>
<EmailAddress>john.s@site.com</EmailAddress>
<Phone>+1234567890</Phone>
</GetUserInfo>
Now what would be the php code to echo “9.5”
Thanks for your earlier answers…
This will work