while ($strpos = strpos($text, $search, $offset)) {
$offset = $strpos + $search_length .'<br>';
$text = substr_replace($text, $replace, $strpos, $search_length);
}
注意: C:\xampp..\index.php の 13 行目に、整形式でない数値が見つかりました
13行目: while ($strpos = strpos($text, $search, $offset)) {
これは私が変数を定義する方法です:
$text = $_POST['text'];
$search = $_POST['searchfor'];
$offset = 0;
エラーの原因がどこにあるのか本当にわかりません。
コードは現在正常に動作していますが、以前に何が起こったのかを正確に説明することはできません。返信してくれてありがとう。