I use this when I have one command args: PHP: $id = trim(implode(" ", $args)); What if I have 2 args?
trim(implode(" ", $args)) This combines all elements in $args into a string with " " (a space) as the separator. What do you want? Actually, reading the PHP documentation on arrays is much simpler.