view original html result, real result:
string(13) "one<two<three"
as eis mentioned:
This is what he should do. You look at it in your browser, where it does not show the results as is, but tries to make it as HTML.
therefore, if you want to see it as plain text, the html tags tag filter:
<?php $b = array("one", "two", "three"); $z = implode('<', $b); $z = htmlspecialchars($z); var_dump($z);
source share