Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 12, 2019 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/6e5502794796e4157ae77f881d6173f0 to your computer and use it in GitHub Desktop.
Save parzibyte/6e5502794796e4157ae77f881d6173f0 to your computer and use it in GitHub Desktop.
<?php
/*
Convertir arreglo a cadena en PHP (unir arreglo)
https://parzibyte.me/blog
*/
$arreglo = array(
"Me ",
"gusta ",
"programar ",
"en ",
"php",
);
$cadena = implode($arreglo);
var_dump($cadena);
/*
Salida:
string(25) "Me gusta programar en php"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment