$y=substr("hello",10,1); foo($y);# this runs, but substr() generates warnings because the substr() is outside the string foo( substr("hello",10,1) ); # this is a fatal error!