Well, actually yes it is working.
I just discovered that I can get it working using
” print_r ” but it will not work with ” echo “.
I haven’t used .. print_r that much and I’m
not sure of the difference other than .. print_r ..
is a function.
If I remember correctly, “C++” has a similar function
and was used along with formatting text,
but I can’t seem to find a reference for the function.
example code:
[code=php]<?php
$names = array(
“1110_nzd_jpy”,
“1110_nzd_jpy”,
“1110_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_nzd_jpy”,
“1107_aud_usd”,
“1107_nzd_jpy”);
print_r( array_values($names));
echo “<br>”;
$names_unique = array();
$names_unique = array_unique($names);
print_r($names_unique);
?>
My question would be, why does it
not work with ” echo “?