1 2 3 4 5 6
<?php $arg = trim($argv[1]); $arg = substr($arg, 0, strrpos($arg, ' ')); echo substr($arg, strrpos($arg, ' ')); ?>