Jump to content

ccherry17

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by ccherry17

  1. Hello to all Can someone help me on how can i parse this XML string? <?php <?xml version="1.0" encoding="UTF-8"?><SendSMSResponse><Transaction><IP>120.28.199.73</IP><Code>1</Code><Description>Transaction OK</Description></Transaction><Destinations><Destination><Number> +639217195804 </Number><Code>1</Code></Destination></Destinations></SendSMSResponse> ?> I would like to get the word "Transaction OK" but i dont know where to start. thanks in advance
  2. So sorry sir, yup the three words are subject to change. ex. Hello and welcome mine +440983234213 adam
  3. No sir.. Those words will be totally removed.. How will i do it? thanks
  4. Hello again to all I would like to ask if how can i removed the first 3 words on this string? thanks in advance
  5. Hello.. I've been searching over the internet and i got to modify the code that was given to me by thorpe. <?php $s = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit accumsan turpis, vitae rutrum quam cursus id. Sed quis pulvinar eros. Integer vel tellus turpis. Donec tortor dolor, convallis in mollis et, rhoncus eu lacus. Etiam quam risus, fringilla ac tempor in, congue vel felis. Mauris eu luctus augue. Fusce nisl neque, convallis a posuere a, ultricies et metus.'; $a = explode(' ', $s); $myarray[] = array_shift($a); foreach($myarray as $bv => $ms){ echo $ms; } ?> the error is that, all i get as the result was the word "Lorem" that in fact i would like to remove it.. I really would like to get this result after using the code above.. <?php ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit accumsan turpis, vitae rutrum quam cursus id. Sed quis pulvinar eros. Integer vel tellus turpis. Donec tortor dolor, convallis in mollis et, rhoncus eu lacus. Etiam quam risus, fringilla ac tempor in, congue vel felis. Mauris eu luctus augue. Fusce nisl neque, convallis a posuere a, ultricies et metus. ?> can someone help me? I will also work on my own to solve my problem but i need help from you guys.. thanks
  6. I do not know php sir.. What i would like to do on my string is to removed the first word then put the words on the array.. I was hoping for someone to code it for me.. thanks
  7. Hello I have here a string What i would like to do with this string is to remove the first word and then put the words on the array. To make things more clearer. Please refer to my sample array below. Thanks <?php Array { [0] => ipsum [1] => dolor [2] => sit amet, consectetur adipiscing elit. Pellentesque hendrerit accumsan turpis, vitae rutrum quam cursus id. Sed quis pulvinar eros. Integer vel tellus turpis. Donec tortor dolor, convallis in mollis et, rhoncus eu lacus. Etiam quam risus, fringilla ac tempor in, congue vel felis. Mauris eu luctus augue. Fusce nisl neque, convallis a posuere a, ultricies et metus. } ?> My problem is that i dont know how to code this using php. Could someone code this for me? I will really appreciate your help! thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.