IHYPRESS PROGRAMMING
PHP programs with code and output for beginners
php logo
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
PHP ❯ Regular Expressions
<06>
<?php $advice = "Advice from a sea turtle: Swim with the current. Be a good neighbor. Stay calm under pressure. Be well traveled. Think long term. Age gracefully. Spend time at the beach!"; echo (preg_match("/Beach/i", $advice)); echo "<br>"; echo (preg_match("/Calm/", $advice)); echo "<br>"; echo (preg_replace("/sea turtle/", "SEA TURTLE", $advice)); echo "<br>"; echo (preg_replace("/\s/", " &spades; ", $advice)); echo "<br>"; ?>
Hergestellt in Deutschland / Made in Germany
1
0
Advice from a SEA TURTLE: Swim with the current. Be a good neighbor. Stay calm under pressure. Be well traveled. Think long term. Age gracefully. Spend time at the beach!
Advice ♠ from ♠ a ♠ sea ♠ turtle: ♠ Swim ♠ with ♠ the ♠ current. ♠ Be ♠ a ♠ good ♠ neighbor. ♠ Stay ♠ calm ♠ under ♠ pressure. ♠ Be ♠ well ♠ traveled. ♠ Think ♠ long ♠ term. ♠ Age ♠ gracefully. ♠ Spend ♠ time ♠ at ♠ the ♠ beach!
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland