PHP single & double quotes in CLI argument : I've write a simple php script file that must execute in CLI and it needs 2 arguments.

    /usr/local/bin/php myscipt.php arg1 arg2
it works well, but IF I put something like

    /usr/local/bin/php myscipt.php ar"g1 arg2
or

    /usr/local/bin/php myscipt.php ar"g1 ar'g2

it do no treat argument like I want.
please is there any way to solve this.
I've tried all possible functions : strstr, strpos, ... and even loops.
Thanks