|
Posted by shimmyshack on 06/28/07 17:19
On Jun 28, 6:15 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 28 Jun 2007 18:50:36 +0200, shimmyshack <matt.fa...@gmail.com>
> wrote:
>
>
>
> > On Jun 28, 5:21 pm, "laredotorn...@zipmail.com"
> > <laredotorn...@zipmail.com> wrote:
> >> Hi,
>
> >> I'm using php 4.4.4. How do i check if a given variable is an array
> >> or simply a scalar?
>
> >> Thanks, - Dave
>
> > is_array ?
>
> > there are others:
> > is_float()
> > is_int()
> > is_string()
> > is_object()
>
> And don;t forget: is_scalar()
>
> --
> Rik Wasmus
yeah theres loads of is_
theres another one
is_a_pain_to_remember_them_all
but it always returns true for me
[Back to original message]
|