mercredi 25 juillet 2018

Unable to add two strings(random hash and normal string) php

So i have this short code

<?php 
$random = substr(md5(uniqid(rand(), true)), 
16, 16);
$name="Tito";



$both= $random+$name;
echo $both;
?>

The result is meant to be something like fdgd3644333d2672Tito(random+"Tito")

But instead,I keep getting numbers such as 0,344 etc or strings IFF

Please help.How do I concatenate these strings as a whole word??

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire