<?php $offset= 0; if (isset($_POST['user_text'])&&isset($_POST['find_text'])&&isset($_POST['replace_text'])){ $u_text=$_POST['user_text']; $u_find=$_POST['find_text']; $u_replace=$_POST['replace_text']; $s_length=strlen($u_find); if (!empty($u_text)&&!empty($u_find)&&!empty($u_replace)){ while ($strpos=strpos($u_text,$u_find,$offset)) { echo $u_text.'<br />'; echo $offset=$strpos+$s_length; } } else { echo 'Fill all the box'; } } ?>
while ($strpos=strpos($u_text,$u_find,$offset) !== false ) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)