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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to