How to ask a variable another time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to ask a variable another time

I don't know how do this: ask $name in input echo "Your name is".$name ask $surname in input echo "Your surname is".$surname

28th Feb 2020, 11:34 AM
Enderay 1
Enderay 1 - avatar
1 Answer
+ 5
There isn't any specified input method in PHP. You could try linking up the variable with a <form>
28th Feb 2020, 11:42 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar