Re: Type of a variable in PHP

From: Date: Fri, 15 Mar 2013 10:09:02 +0000
Subject: Re: Type of a variable in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-320563@lists.php.net to get a copy of this message
Karim Geiger wrote:
Have two questions -
1. How to find type of a variable in PHP. 2. How to find the type of an array in PHP. Please help. Use this: http://php.net/manual/en/function.gettype.php
BUT - bear in mind that the nice thing about PHP 'arrays' is that they are a not restricted to a single type. The elements of an array can be different types. It's more a 'basket' than a traditional array. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.general (#320563) next »