Methods for PHP scalars