Re: array variable name

From: Date: Fri, 15 Feb 2002 11:35:31 +0000
Subject: Re: array variable name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84885@lists.php.net to get a copy of this message
Dnia czwartek 14 luty 2002 21:14, Rick Emery napisał: >> How can I get the name of array variable into str? > what are your trying to do with it?? This: function show_arr($array) //wyswietla wartosci z tablicy wraz z kluczami (przeznaczone do debugowania) {         if(DABUG)         {         echo "<b>-------------------------------------------</b><br>";         echo "Array contents<b>".strval($array)."</b><br>";                 while(list($k,$v)=each($array))                 {                         echo "$k = $v<br>";                 }         echo "<b>-------------------------------------------</b>";         } } quite useful when making big project with lots of array and debuging

« previous php.general (#84885) next »