PHPStringVariables«PreviousNextChapter»Astringvariableisusedtostoreandmanipulatetext.StringVariablesinPHPStringvariablesareusedforvaluesthatcontaincharacters.InthischapterwearegoingtolookatthemostcommonfunctionsandoperatorsusedtomanipulatestringsinPHP.Afterwecreateastringwecanmanipulateit.Astringcanbeuseddirectlyinafunctionoritcanbestoredinavariable.Below,thePHP...
PHPVariables«PreviousNextChapter»Variablesare"containers"forstoringinformation.DoYouRememberAlgebraFromSchool?Doyourememberalgebrafromschool?x=5,y=6,z=x+yDoyourememberthataletter(likex)couldbeusedtoholdavalue(like5),andthatyoucouldusetheinformationabovetocalculatethevalueofztobe11?Theselettersarecalledvariables,andvariablescanbeusedtoholdvalues(x=5)orexpressi...