function myfunction(){
????????
print $string;
}
myfunction("Hello, World!");
Options :
1. There is no way to do this.
2. $string = $argv[1];
3. $string = $_ARGV[0];
4. list($string) = func_get_args();
5. $string = get_function_args()
Comments to answer.
list($string) = func_get_args();
ReplyDelete