Login +

Documentation

SLS_String::validateArray

Since SillySmart 1.0

Description

Validate the type 'array'
static bool validateArray ( array $element, [ bool $require_content ] );

Parameters

  • array $element
    the array to test
  • bool $require_content
    true if you want to check that the array is not empty, else false

Return

bool $isArray
true if array, else false

Exemples

  •  var_dump(SLS_String::validateString(1234));
     // will produce : false
  •  var_dump(SLS_String::validateString(array(),true));
     // will produce : false
  •  var_dump(SLS_String::validateString(array(),false));
     // will produce : true

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.