Re: Type of a variable in PHP

From: Date: Sat, 16 Mar 2013 13:02:22 +0000
Subject: Re: Type of a variable in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-320609@lists.php.net to get a copy of this message
Thanks Nora On Fri, Mar 15, 2013 at 4:34 PM, Sebastian Krebs <krebs.seb@gmail.com>wrote: > > > > 2013/3/15 Kevin Peterson <qh.resu01@gmail.com> > >> Have two questions - >> 1. How to find type of a variable in PHP. >> > > gettype(), or one of the is_*()-functions. But for me more interesting for > me: Why do you _need_ this? > > >> 2. How to find the type of an array in PHP. >> > > An array is of type array :) is_array() or again gettype(). > > > Can you maybe describe what you want to achieve? In a dynamically typed > language it is rarely _required_, that you know the _concrete_ type. > > >> >> Please help. >> >> > > > -- > github.com/KingCrunch >

« previous php.general (#320609) next »