Posts by MASNathan • 54 points
4 posts
-
0
votes1
answer118
viewsA: Use include namespace
Namespaces are defined in each file, because by default the file namespace is \, thus, at the top of the file arquivo.php you need to include the namespace of the classes you want to use use…
-
2
votes3
answers1350
viewsA: PHP $_FILES[''] becomes empty before validation
Note that Function filesize() returns the bit size of a file, and takes as parameter the path of that file (if I am not mistaken). So this line is not correct: if(filesize($_FILES["avatar"]["size"])…
-
1
votes2
answers402
viewsA: How to mount this multidimensional array via foreach
Good afternoon, Depending on how you are generating the xml (Tool you use), the following might work: $arrayAtributos = array('Tamanho' => 35, 'Cor' => 'AZUL/ROSA'); foreach ($arrayAtributos…
-
0
votes5
answers1501
viewsA: How to take the name of the variable used in the function argument?
What you probably want to do is have a template script3.php and load the necessary information through the function sendData, if that is the case you can do as follows. function sendData(array $data…