Jump to content

blacksmoke26

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

blacksmoke26's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. any char without <?php ?> or with echo ''; is an output.
  2. but i found an example in PHP manual: <?php $a = array(array('p', 'h'), array('p', 'r'), 'o'); if (in_array(array('p', 'h'), $a)) { echo "'ph' was found\n"; } if (in_array(array('f', 'i'), $a)) { echo "'fi' was found\n"; } if (in_array('o', $a)) { echo "'o' was found\n"; } ?> In this example, $needle is as array. Me also searching for array to array.
  3. <?php $wgt_places = array('all', 'index', 'view', 'search'); $place = 'all, index'; $data = str_replace(', ', ',', $place); $places = explode (',', $data); if (!in_array ($places , $wgt_places)) { echo 'ERROR'; exit; } echo 'PASS'; exit; ?> Not found error in_array() :'( Anyone can solve this?
  4. Oh yes... i upgraded my PHP to 5.3.0 from PHP 5.2.9. but this was working in PHP 5.2.9. Thanks AlexWD , your the rock...
  5. Element 's' is exist in $edb array! then why am getting message .... Element not found
  6. I have problem in my code: $edb = array ("s" => "File {NAME} does not exist."); if (!in_array("s", $edb)) { echo ('Error: 10: Number ' . 's' . ' not found in error list.'); } Output: Error: 10: Number s not found in error list. can anyone tell me where is an error? :'(
×
×
  • 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.