![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
13-07-2005, 12:11
|
|
|
חבר מתאריך: 09.05.05
הודעות: 1,217
|
|
הנה דרך אחת.. בטח יש עוד מיליון ואחת דרכים, ובטח זאת לא הכי טובה, אבל בזאת אני משתמש ![Smile](images/smilies/smile.gif)
קוד PHP:
<?php $string="Hi my name is ofer and I love PHP"; //searching for "name" if (substr_count($string,"name") => 1 { echo "i found \"name\" in the following text:"; echo $string; } else { echo "sorry, given text was not found"; } ?>
|