PHP/String/strtolower — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:07, 26 мая 2010
Содержание
Changing case
<source lang="html4strict">
<? print strtolower("Beef, CHICKEN, Pork, duCK"); print strtoupper("Beef, CHICKEN, Pork, duCK"); ?>
</source>
Controlling Case: string strtoupper ( string string ),string strtolower ( string str )
<source lang="html4strict">
<?php $submittedpass = "myPass"; $newpass = strtolower ($submittedpass); echo $newpass; ?>
</source>
string strtolower ( string str ) returns that string entirely in lowercase characters.
<source lang="html4strict">
<?
$string = "I like to program in PHP"; $a = strtolower($string);
?>
</source>
strtolower() function converts a string to all lowercase letters.
<source lang="html4strict">
Its syntax is: string strtolower (string string) <?
$sentence = "COOKING"; $sentence = strtolower($sentence); print $sentence;
?>
</source>
strtolower.php
<source lang="html4strict">
<?php
$url = "http://WWW.EXAMPLE.ru/"; echo strtolower($url);
?>
</source>