PHP String Case Manipulation


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. $string = "i like to program in PHP";
  3. $a = strtoupper($string);
  4. $b = strtolower($string);
  5. $c = ucfirst($string);
  6. $d = ucwords($string);
  7. $e = ucwords(strtolower($string));
  8. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.