How enter variable or function in php code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How enter variable or function in php code

How enter variable or function in php code, for example, <?php $myfile = fopen("names.txt", "x+"); $txt = "Y\n"; Y=+=Y;; if Y>0 echo Y fwrite($myfile, $txt); fclose($myfile); $read = file('names.txt'); foreach ($read as $line) { echo $line .", "; } ?>

13th Mar 2017, 7:43 AM
Pavel Grekoff
Pavel Grekoff - avatar
1 Answer
+ 1
check through the question and edit I don't understand what you are trying to ask // also there are some errors in your code
13th Mar 2017, 8:31 AM
ODUKOYA JESUSEYITAN
ODUKOYA JESUSEYITAN - avatar