hi all
I've got little script:
$old = ''; $id = '0'; $nick = 'Deef'; $content = $old + '(id|' + $id + '|' + $nick + '|0)'; echo '<br>' . $content;
I expect the output to be: (id|0|Deef|0) but the output is:
what am I doing wrong here? 🙁 😕
Replace your +s with .s. + is used for addition not for concatination, for that you must use ..
$old = ''; $id = '0'; $nick = 'Deef'; $content = $old.'(id|'.$id.'|'.$nick.'|0)'; echo '<br>' . $content;
HTH Bubble
dam it works :S
why are the anwers allways so simple?
thanks man 🙂