repl.it
@acwoss/

LawngreenCookedWeblogsoftware

PHP (Legacy)

No description

fork
loading
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//<?php

$valores = <<<TXT
valor1
valor2
valor3
valor4
TXT;

$quebra = explode("\n", $valores);
$junta = implode('', $quebra);
$texto = str_replace(" ","", $junta);
$result = str_replace(" ", ",", $texto);

echo $result;
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7