Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php echo

<?php
   $motto = " my first book   ";
   $newMotto = str_replace("first", "best", $motto);
   $newMotto = trim($newMotto);
   echo "<p> $motto </p>";
   echo "<p> $newMotto </p>"; 
   echo substr($newMotto, -4);
 ?>
Source by moodle.uowplatform.edu.au #
 
PREVIOUS NEXT
Tagged: #php #echo
ADD COMMENT
Topic
Name
3+9 =