here is the var_dump of object:
object(SimpleXMLElement)#31 (1) { [0]=> string(70) "/0.jpg" }
I want to have just /0.jpg as string…
I want to have it inside $img.
I used
$xml = simplexml_load_file($file);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple XML creates objects. In my experience, the quickest way to reassign a string value is to cast it.
For example: