Hallo,
Ik heb dit script:
Als $_POST['station'] nu bijvoorbeeld 'l' is dan staat er dus eigenlijks dit:
vervang alle L`s naar <b><u>L</u></b> in $founds["fullname"][$i];
vervan alle l`s naar <b><u>l</u></b> in $founds["fullname"][$i];
Dit wil ik dus hebben alleen toch word de output zo als ik l intyp:

en als ik L intyp hetzelfde.
Weet iemand wat het probleem is? De 2 regels ook al omgedraait maar altijd werkt de laatste.
Ik heb dit script:
Code:
<?php
$showkey = str_replace(ucfirst($_POST['station']), '<b><u>'.htmlentities(ucfirst($_POST["station"]), ENT_QUOTES).'</u></b>', $founds["fullname"][$i]);
$showkey = str_replace(lcfirst($_POST["station"]), '<b><u>'.htmlentities(lcfirst($_POST["station"]), ENT_QUOTES).'</u></b>', $founds["fullname"][$i]);
Als $_POST['station'] nu bijvoorbeeld 'l' is dan staat er dus eigenlijks dit:
vervang alle L`s naar <b><u>L</u></b> in $founds["fullname"][$i];
vervan alle l`s naar <b><u>l</u></b> in $founds["fullname"][$i];
Dit wil ik dus hebben alleen toch word de output zo als ik l intyp:

en als ik L intyp hetzelfde.
Weet iemand wat het probleem is? De 2 regels ook al omgedraait maar altijd werkt de laatste.