Disadvantages of the PHP function printarray (): The print_r () object cannot be output.
- Printarray ($ _ REQUEST );
- Function printarray ($ strs,
$ Numbers = 0 ){
- $ Space = ''; // space before the output character
- For ($ I = 0; $ I<$ Numbers * 2; $ I ++)
- $ Space. = '& nbsp ;';
- Echo 'array<Br/>'. $ Space .'(<Br/>';
- Foreach ($ strs as $ key =>$ Value ){
- If (is_array ($ value )){
- $ Numbers ++;
- Echo $ space. '['. $ key. '] =>';
- Printarray ($ value, $ numbers );
- } Else {
- Echo $ space. '& nbsp; ['. $ key. '] =>'
. $ Value .'<Br/>';
- }
- }
- Echo $ space .')<Br/>';
- }
The output content of the PHP function printarray () is as follows:
- Array
- (
- [ECS] => Array
- (
- [visit_times] => 2
- )
- [uchome_loginuser] => yoyorose
- [rrm_cookietime] => 2592000
- [rrm_indextype] => classics
- [uchome_mytemplate] => blue
- [rrm_loginuser] => yoyorose
- [rrm_activationauth] => 6f474pFbxW4oV
/XdtU+eyoMUxpRCx6A+0GMR4SUR/8GlagURxA
- [ZDEDebuggerPresent] => PHP,phtml,PHP3
- [uchome_auth] => 821bVB9QFgrH+4uv07tQ6q
CRYK9OueeM/j5gqXCJfmUZh3gptW6dP3phCqPufV
ZnYY3qCtuW7h1vrLxEemQG
- [uchome_viewuids] => 10_1_2_4_11_8_9_7
- [uchome_space_top_show] => 1
- [uchome_space_top_experience] => 2
- )