<?php
$text = 'hello bob english name jhon';
$english = array("|", file('./langs/english.lng'));
$french = array("|", file('./langs/french.lng'));
$text = str_ireplace($english, $french, $text);
echo $text;
?>
now english looks like this
hello|name|etc...
and french looks like this
bonjour|nom|etc...
I need | to start a new array item so it will be
English French
item 1 hello bonjour
item2 name nom
and so on