jeudi 23 août 2018

Php string concatenating variables with forward slash

```Hi,

I am trying to create a unique id by concatenating 3 variables using forward slashes(/).my code is like so

`$year . "/" . $acronym . "/" . $num;`

i am expecting a output of

`18/MC/1`

but the output i get is

`18\/MC\/1"`

What am i doing wrong. I have already tried using stripslashes() but it doesn't do anything to the output.```



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LmdUYT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire