1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 15:22:19 +01:00
Files
archived-web-php/apachecon/s_string.php3
Rasmus Lerdorf 2424277ad8 Add main slides
1998-10-21 23:44:28 +00:00

28 lines
606 B
PHP

<?php require "header.inc"?>
<H1>String Handling</H1>
<?example('<?php
$a = explode(":", "This:string:has:delimiters.");
while (list(,$value) = each($a)) {
if (strcmp($value, "has") == 0) {
echo "had ";
} else {
echo $value." ";
}
}
?>');?>
<H6>Output:</H6><BLOCKQUOTE>
<?php
$a = explode(":", "This:string:has:delimiters.");
while (list(,$value) = each($a)) {
if (strcmp($value, "has") == 0) {
echo "had ";
} else {
echo $value." ";
}
}
?>
</BLOCKQUOTE>
<?php require "footer.inc"?>