note 81628 added to function.print-r

From: Date: Fri, 07 Mar 2008 04:13:41 +0000
Subject: note 81628 added to function.print-r
Groups: php.notes 
Request: Send a blank email to php-notes+get-136807@lists.php.net to get a copy of this message
Another slight modification to the previous post to allow for empty array elements added the following lines after the first preg_match block <?php } else if ($expecting == 2 && preg_match('/^\[(.+?)\] \=\>$/', $trim, $matches)) { // array element // the array element is blank list ($fullMatch, $key) = $matches; $topArray[$key] = $element; } ?> ---- Server IP: 202.89.58.1 Probable Submitter: 203.97.96.239 ---- Manual Page -- http://www.php.net/manual/en/function.print-r.php Edit -- https://master.php.net/note/edit/81628 Del: integrated -- https://master.php.net/note/delete/81628/integrated Del: useless -- https://master.php.net/note/delete/81628/useless Del: bad code -- https://master.php.net/note/delete/81628/bad+code Del: spam -- https://master.php.net/note/delete/81628/spam Del: non-english -- https://master.php.net/note/delete/81628/non-english Del: in docs -- https://master.php.net/note/delete/81628/in+docs Del: other reasons-- https://master.php.net/note/delete/81628 Reject -- https://master.php.net/note/reject/81628 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136807) next »