N
N
Nick Murzin2014-09-24 15:42:32
PHP
Nick Murzin, 2014-09-24 15:42:32

Why such a strange "shielding"?

In one of the tutorials, I came across such "escaping" of variables in queries. Why do we need dots and multiple quotes?
'".$_POST['first_name']."'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kell555, 2014-09-24
@R0s0maxa

This is how variables are attached.
Example:
echo "Здравствуйте ".$_POST['first_name']."";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question