/* PASTE YOUR PROVIDED EDUHUB CSS HERE */
PHP COURSE • LESSON 07

PHP Strings

A string is a sequence of characters stored inside quotes.

String Example


<?php

$text = "Learn PHP";

echo $text;

?>

String Functions

strlen() Finds string length
strtoupper() Changes text to uppercase
strtolower() Changes text to lowercase
Example


<?php

echo strlen("PHP");

?>