Assalam o aliekum dosto. ye PHP ka dusra lecture hy or umeed hy ap sab ko pasand aye ga. Start hamesha basics say kia jata hy to sb say pehly ye dekhty hain k hum agar user ki screen per kuch output karwana chahty hain to wo kesay kia jaa sakta hy..
es k lye hum PHP ki echo k name say statement ko istemal karty hain. echo ki statement ksi bhi text to user ki statement k browser may show karwati hy.
<?php
echo "This is some text.";
?>

es trah likhny say ye double quotes k ander likha hua text user kis screen per show ho jye ga. es video may dekhein k kesay..


echo use karty huye hum agar kuch bhi output yani k user ki screen per show karwana chah rahy hain to double quotes lgaty hain. bilkul jis trah html may opening/closing tags hoty hain usi trah ksi text ko show karwany k lye hi humy PHP ko ye btana parta hy k text kahn say start or end ho rha hy to pehli double quote starting hy or dusri quote ending. ye wo boundry hy jisay PHP ki echo ki statement user ki screen per show karwa de ge.
Semicolon( ; ): semi colon bht c programming languages may use hota hy. har programming language may ksi code ki ek line end karny ya line k end hony ki humy kuch na kuch indication deni parti hy. to php may semi colon k zarye hum php ko ye btaty hain k yahn pe ek line end ho rahi hy. pehly es say pehly wala code process karay wo pehli line hy phr next chalay.

Ab hum variables per atay hain
Variables: ksi bhi information ko store karny k lye containers hoty hain. hum beshak ksi bhi cheese ko, jesay wo koi number ho 1 2 ya 3 usay kahin bhi use kar sakty hain mgar variables humy bht c sahoolyat dete hain. Hum sb say pehly equal ka sign use kar k ksi variable may koi value store karwa dete hain phr agay usay use kar lete hain.
har programming language may variables bnany ka tariqa apna different hy, PHP may hum ek doller sign lgaty hain phr space diye bghair variable ka name likh dete hain
$name;
yahn pe variable ka name hy "name".. ab yahn variable ban geya hy mgar es may koi value nahi to esay value dene k lye hum equal ka sign lgaty hain phr usky bad value likh dete hain
$name = "Arslan";
to yahn name k variable ko "Arslan" value assign kardi gae hy. phr semi colon say line end kardi gae hy.
ab agr hum name waly variable may mojood value ko dekhna chahty hain to hum echo use kar len gay.
echo $name;
es say humaris creen per Arslan likha ajye ga. ab hum jahn chahein esay use karein jitni bar karein koi masla nahi
variables ksi bhi programming language ka bht important part hain. enka sb say bara faida ye hota hy k hum value ek jagah asign karty hain or jahn jahn esay use kia jaa rha hy wahn per ye show ho jye ga.
meri video ko zaroor dekhen us may step by step explain kiya geya hy k yahn yaqeenan logon say ziada parha nahi jye ga