خرید بک لینک
Hello,
This may seem like a simple question but it bugs me.
I'm new to coding and I read this code on a php page about sessions:

PHP Code:

//On page 1
$_SESSION['varname'] = $var_value;

//On page 2
$var_value $_SESSION['varname']; 

Questions:
Q1. I've read before that variables go on the left and expressions on the right, but I notice this dilemma on occasions where the opposite is done like above. Why is that?
Q2. And in the code above, why would I assign a variable twice?

I'm posting here because I like how the forum is newbie-friendly but the citation/context can be found here: https://stackoverflow.com/questions/...e-to-next-page

Thank you

برچسب: نویسنده: آیلین رضوانی تاريخ: سه شنبه 14 شهريور 1396 ساعت: 18:46

صفحه بندی