A kde je teda problém?
Kód:
$stare = " if ( \$this->settings['reg_show'] and \$this->settings['reg_name'] )
{
\$copyright .= \"<br />AA: \". \$this->settings['reg_name'];
}";
$nove = "\$copyright .= \"<br />AA: \";";
strreplace($stare, $nove, $text);
Samozrejme, premennú $text si najprv musíš naplniť textom, v ktorom toto všetko chceš meniť. Predpokladám, že je to súbor, tak no napr. načítaj do reťazca cez
file_get_contents a potom zapíš cez
file_put_contents.
_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.