mercredi 19 septembre 2018

Define a variable in a Function and print it outside the function [duplicate]

Is it possible to print a variable outside of the function ex.

<?php
 function test(){
   $var = "hello world";
 }
 test();
 echo $var;




Aucun commentaire:

Enregistrer un commentaire