I’m making an ajax console for a site that I’m an admin on for other administrators to use.
Anyway, I have a bunch of commands they can use like “getid someusername”, but the usernames can also have spaces in them like “getid some other name”. I know that command line PHP scripts take arguments with spaces when they are encased in quotes. Is this functionality included in PHP or will I need to write it myself?
You can always easily test it for yourself (see
$argv), however as far as I know, that functionality is included in PHP (or more correctly, with the shell).