xxxxxxxxxx
<?php
// 11. ltrim()
$str = " Hello, world! ";
echo ltrim($str);
echo "\n";
// Output:
// Hello, world!
// 12. rtrim()
$str = " Hello, world! ";
echo rtrim($str);
echo "\n";
// Output:
// Hello, world!
// 13. str_repeat()
$str = "Hello!";
echo str_repeat($str, 3);
echo "\n";
// Output:
// Hello!Hello!Hello!
// 14. strcmp()
$str1 = "Hello";
$str2 = "hello";
echo strcmp($str1, $str2);
echo "\n";
// Output:
// -32
// 15. strcasecmp()
$str1 = "Hello";
$str2 = "hello";
echo strcasecmp($str1, $str2);
echo "\n";
// Output:
// 0
?>