<?php
$js_date = "12.12.2013";
$js_time = "10.00";
$string = preg_replace(
'~a~', #your pattern
'<a href="$0" title="$0">$0</a>',
'a, b, a, b, a, b, a' #your text-area
);
echo $string;
#<a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>
$email_message ="\n Lugupeetud klient, \n \n teile broneeritud ülevaatuse aeg on ".$js_date." kell ".$js_time.". \n ABC Tehno asub aadressil Sõpruse pst 27, tel: 6 999 227, email: ".echo "You're in! <a href=\"member.php\">Hello!</a>".".\n Tuletame meelde, et hilinemisel kaotab broneering kehtivuse. \n \n Kohtumiseni, \n ABC Tehno";
echo $email_message; ?>
- Output for 5.4.0 - 5.4.22, 5.5.0 - 5.5.6
- Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/IpLGT on line 12
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected T_ECHO in /in/IpLGT on line 12
Process exited with code 255.
preferences:
188.77 ms | 1395 KiB | 65 Q