basic-php-09-snippet02.php / php
<?php //set string with "Wrox" spelled wrong //try to use str_replace to replace Worx with Wrox //this will generate an E_WARNING //because of wrong parameter count str_replace("Worx", "Wrox"); //this is a non-fatal error, so the original //variable should still show up after the warning echo string_variable; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.