I'm imploding an array of numbers and strings which are then separated by a colon character:
$output = implode(":", $outputArray);
$outputArray is an array containing 4 elements - id_number (a 10 digit integer), family name (a string), given name (a string) and date of birth (a string of format 21/02/81).
$output works perfectly if just the id_number the family name and the given name are imploded. But as soon as date of birth is added it causes bizarre formatting of the output string.
e.g.
2002112345:Roe:Jane
but with the date of birth it becomes:
Any ideas would be greatly appreciated. Thank you.