PHP trim() Function with Example

Program 1

<html>
    <head><title>String in PHP Application</title>
    <body>
  
  <pre>
    <center>

<?php
           $mystr="Data Flair PHP Course                  ";
           $mystr1="Free Course";
             
            $mystr=chop($mystr);
              echo $mystr;
              echo $mystr1;
             //trim()
              //ltrim()
              // rtrim()
              //chop()
?>
        
</pre>
        </center>
</body>
</html>

 

courses

Leave a Reply

Your email address will not be published. Required fields are marked *