FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » detection of 2d array?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: detection of 2d array? [message #183647 is a reply to message #183442] Wed, 06 November 2013 13:24 Go to previous messageGo to previous message
Struchkov Vladimir is currently offline  Struchkov Vladimir
Messages: 1
Registered: November 2013
Karma:
Junior Member
I write short test for 2d dimension


$a=array(1,2,3,4=>array(3,4,5,7=>array(1)));
if (preg_match('/;a:[0-9]+:{/',serialize($a)))
{
echo 'I have more than one dimensions';
}
else
{
echo 'I have one demension';
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: detecting a file in use
Next Topic: Mysqli or PDO Persistent prepared statements
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:37:35 GMT 2024

Total time taken to generate the page: 0.03044 seconds