PHP Function List
print_r() doesn't exist. Closest matches:
- print_r
- printf
- variant_or
- sprintf
- vprintf
- fprintf
- variant_xor
- vfprintf
- vsprintf
- printer_open
- printer_list
- printer_write
- printer_abort
- variant_round
- printer_close
- splint
- pcntl_fork
- variant_sub
- variant_cmp
Site Search Results
-
Note: 参数 return 是在 PHP 4.3.0 的时候加上的 print_r() 显示关于一个变量的易于理解的信息。如果给出的是 string、integer 或 float,将打印变量值本身。
-
array_map('trim',explode(",",$str)); example: $str="one ,two , three , four "; print_r(array_map('trim',explode(",",$str))); Output: Array ( [0] => one [1] => two [2] => three [3] => four )
-
array_key_exists ( $index, $array )) ){ throw new Exception ("Array index out of bounds. Parameters:". print_r ($args, true)); } $array = $array [$index]; } return $array;
-
Here's a simple program I use to format PHP code for inclusion on my blog: UNIX: cat test.php | php -r "print htmlentities(file_get_contents('php://stdin'));" DOS/Windows: type test.php | php -r "print htmlentities(file_get_contents('php://stdin'));"
-
$return = call_user_func_array ("mysql_". $function, $arguments); if(! $return) die(@ mysql_error ()); }} $db = new SQL (); $query = $db-> query ("SELECT * FROM this_table WHERE my_variable='1'"); $fetch = $db-> fetch_array ($query); print_r ($fetch);
-
Note that if you want to dump the value of a variable, you want to use print_r(), var_dump() or var_export().
-
print_r ($words);?> The result will be: Array ( [0] => apple [1] => bear [2] => Tom Cruise [3] => or [4] => Mickey Mouse [5] => another [6] => word) 1. Accepted delimiters: white spaces (space, tab, new line etc.) and commas.
-
return ($value & 1); } $oddonly = array (1,2,3,4,5,6,7,8,9); print_r(my_array_filter($oddonly,'odd',1)); //output //Array ( [0] => 1 [2] => 3 [4] => 5 [6] => 7 [8] => 9 ) //Khaled Mohammed
-
print_r ($zeros); natsort ($zeros); print_r ($zeros); echo "Other characters interfering\n"; $images_oops = array('image_1.jpg', 'image_12.jpg', 'image_21.jpg', 'image_4.jpg'); print_r ($images_oops); natsort ($images_oops);
-
* Better GI than print_r or var_dump -- but, unlike var_dump, you can only dump one variable. * Added htmlentities on the var content before echo, so you see what is really there, and not the mark-up. * * Also, now the output is encased within a div block ...

Other forms of search
To search the string "print_r()" using other options, try searching:
- Only the documentation
- Only this mirror
- The entire php.net domain
- pear.php.net
- pecl.php.net
- The Bug DB
- php-general mailing list
- Internals mailing list
- Documentation mailing list
For a quick overview over all documented PHP functions, click here.
