Skip to content

Tag: php

Alias inexistent class names in php

Consider the following code: use ReplacementClass; class A extends ReplacementClass { } The ReplacementClass name in this code should only be a placeholder, an undefined, inexistent class. At …

Return all rows from an array

I’m trying to return a comma separated list of location names from a database. So far I have the SQL statement that I know works because it returns the correct results when tested in phpMyAdmin. I’m …

Does PHP do any parsing on the php.ini file?

Running PHP Version 7.1.30 under RHEL 7.7. I’m wanting to bump memory_limit, but wasn’t sure if I had the syntax right (i.e. 256M or 256MB). So to start with I put a bad value “Hugo” in as the memory_limit setting. The trouble with this is the result of phpinfo() (run under httpd) lite…