I am finding different functions in which the arguments seem to work or behave differently
I've tried a basic function with two parameters that are defined as variables inside the function, but the function i want to understand does not define the argument inside the function
For example:
 function myFunction($name, $age)
  {
    $name = ('maj');
    $age = ('31');
  }
Should, in theory(when I call the function), print to screen:
maj 31
But what about this example?
 function createTable($name, $query)
  {
    queryMysql("CREATE TABLE IF NOT EXISTS $name($query)");
    echo "Table '$name' created or already exists.<br>";
  }
 function queryMysql($query)
  {
    global $connection;
    $result = $connection->query($query);
    if (!$result) die($connection->error);
    return $result;
  }
So, here's where I am confused. Where in these functions are the arguments $name and $query defined?
 
     
    