In a php script I have the following command:
$data['city'] = htmlspecialchars((string)$row->{get($row, 'CPVILLE')}->CPVILLE, ENT_QUOTES, 'UTF-8');
It imports from a XML file a text to a mysql database.
There is no problem, except that the source text is in uppercase. I need it capitalized in order to respect the right format for the website.
How could I edit this command to transform the text as capitalized?
Aucun commentaire:
Enregistrer un commentaire