<?php
{
if($pos !== false)
{
}
}
?>
To jest przykład z manuala:
<?php
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
// Note our use of ===. Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.
if ($pos === false) {
echo \"The string '$findme' was not found in the string '$mystring'\"; } else {
echo \"The string '$findme' was found in the string '$mystring'\"; echo \" and exists at position $pos\"; }
?>
Ale problem polega na czymś innym chodzi ze dzieki :
<?php
$pos = strpos($tresc, $wierszo[1
]); if($pos !== false)
?>
wiem czy szukane slowo jest w stringu
Teraz chce je zamienić ale nie wiem jak to zrobic bez zmieny reszty stringu i zeby zamienialo niezaleznie od wielkiej i malej litery (dlatego przy szukaniu korzystam z strtolower
ps sorry w 1 poscie dalem z strtolowet ale jak dawalem potem w bbcoce dalem wersje bez strtolower a wlasnie o to mi chodzilo