Jump to content

receiver19

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

receiver19's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi all, For example I have array like below: $temp = array(array('north america', 'us', 'california'), array('north america', 'us', 'hawaii'), array('north america', 'canada', 'vancouver'), array('asia', 'singapore', 'orchard'); I need to filter it out. So i hope the result could be: array 'north america' => array 'us' => array 0 =>string 'california' 1 =>string 'hawai' 'asia' => array 'singapore' array 0 => string 'orchard' Anyone could help me to sorf out the logic? I just cannot solve this question. Thanks a lot!
  2. Hello, I am quite new to php. Learning in progress! I have a question. For example, there is a form to allow user to fiill, etc: name: image.google.com host: google.com How can i check the google.com is matched with the name? Thank you very much,
  3. Very well explanation. I have clearer understanding. Thanks a lot!! And, thanks to everyone reply to post. I really appreciate your all kindly help.
  4. BobcatM, i have tried this one. However, when i echo it out. The results isn't right, any idea on it?
  5. Thanks for all the replied. This works very well! However, i don't get it on this part ('#([A-Z][^A-Z]*)#', '$1 ', . I still don't understand though i have read the php manual. Anyone mind to explain to me?
  6. Let's say I have a string "GetToKnowYou". I wish to search the upper capital of that string and separate them into "Get To Know You" Any idea? Thanks in advanced.
  7. I have tried following coding: <?php echo urlencode($action[0]).'<br/>' ;?> <?php echo urldecode($action[0]).'<br/>' ;?> <?php echo urlencode(rawurldecode($action[0])).'<br/>' ;?> <?php echo rawurldecode(urlencode($action[0])).'<br/>';?> <?php echo rawurldecode($action[0]).'<br/>';?> <?php echo $action[0].'<br/>'?> <?php echo urldecode($action[0]).'<br/>' ;?> <?php echo urldecode(rawurldecode($action[0])).'<br/>' ;?> <?php echo rawurldecode(urldecode($action[0])).'<br/>' ;?> <?php echo urldecode(rawurlencode($action[0])).'<br/>' ;?> <?php echo urldecode(rawurldecode($action[0])).'<br/>' ;?> <?php echo rawurldecode($action[0]).'<br/>' ;?> the following are the outputs: cpl198+publisher%40gmail.com cpl198 publisher@gmail.com cpl198+publisher%40gmail.com cpl198+publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com cpl198 publisher@gmail.com I want it to be display as cpl198%2B@gmail.com. $action[0] is a email address that from url using GET method. etc: http://.../0/cpl183%2B@gmail,com Do you have any idea for solving this question? Thank you.
  8. Thanks for the reply. However, 1. curl_setopt($ch, CURLOPT_URL, "http://example.com?0=". $email ."") 2. curl_setopt($ch, CURLOPT_URL, "http://example.com?0=abc%2Bdatacenter@gmail.com") it works on the second, however the first one is not working. I think is the + sign. How can i solve it so that the browser interpret + as %2B?
  9. As title mentioned, for example, I want to send a get request to a permanent link(etc www.google.com) using php, the outcome will become google.com?0=name? form is not the proper step, as in i need to type in the name. How do i send a request to http using php? 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.