i using word press, and i try to learn it,
but is see the code which i didn’t understand
$post = &get_post($id);
i see ‘&’ before the get_post,
what is ‘&’ meaning?
thank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here you’re getting a reference to the result of
get_post($id).In particular you’re using the “returning by reference” technique.
Returning References :
So if you’re using
>= PHP 5it’s not a really great idea to use this notation.Resources :