Count all elements in an array, or something in an object - PHP Please see the Array section of the manual for a detailed explanation of how arrays ... Determine if a variable is set and is not NULL; strlen() - Get string length.