如何在php变量中加号?

I want to store plus sign in php variable but it's not accepting. Suppose I want to store +92XXXXXX in variable $num. when i echo it give me the result 92XXXXXX. where the plus sign goes? How to store this number +92444444 in php variable. Thanks.

Because you are adding a string inside an int variable. These are some example how variable's will result output:

$integer = 11; $variableAndString = '+' . 11; $string = '+12342';

$integer will output 11 $variableAndString will output +11 $string will output +1234