suppose I generate a value on some if faces
$name
if(xxx==xxx){
if(xxx==xxx){
if(xxx==xxx){
$name = xxx;
}
}
}
I want to add $name to the outside of if to use
so what should I do?!
suppose I generate a value on some if faces
$name
if(xxx==xxx){
if(xxx==xxx){
if(xxx==xxx){
$name = xxx;
}
}
}
I want to add $name to the outside of if to use
so what should I do?!
$name be set as a global variable
var $name;
if(xxx==xxx){
if(xxx==xxx){
if(xxx==xxx){
$name = xxx;
}
}
}
I don't quite understand what it means, but I should be able to write it this way:
<?php
function test() {
global $teee;
$teee = 1;
}
test();
echo $teee;
Previous: Vue brothers do not need a parent component when passing values, okay? Just two sibling components.
there is a strange question suppose I declare $self = $_SERVER[ PHP_SELF ]; then I wrote a function below $self = $_SERVER[ PHP_SELF ]; function report(){ echo $self; } and then I ll do another one report(); he will say Undefined vari...