prueba - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of prueba.php

  1. <!DOCTYPE HTML>  
  2. <html>
  3. <head>
  4. <style>
  5. .error {color: #FF0000;}
  6. </style>
  7. </head>
  8. <body>  
  9.  
  10. <?php
  11. $response = '<div class="paradaContainer">
  12.                <a class="changue-paraderos" data-id="1"
  13.                   href="http://transmilenio.test/loader.php?lServicio=Rutas&lTipo=busqueda&lFuncion=paradas&paradero=1">
  14.                    <span class="fa fa-circle "></span><span>162A01                        - Escuela de Infantería</span>
  15.                </a><br/>
  16.                <span class="fa fa-map-marker "></span><span>AC 100 - KR 8 Bis A</span>
  17.            </div>';
  18.  
  19. //echo json_encode($response); //T\u00e9cnologia
  20. echo json_encode($response, JSON_UNESCAPED_UNICODE); //Técnologia
  21. ?>
  22.  
  23. </body>
  24. </html>
File Description
  • prueba
  • PHP Code
  • 22 Apr-2019
  • 722 Bytes
You can Share it: