+ 1
Send SMS Plugin with php
Hi guys Here is my code for sending activation message to mobile . $first_form = false; $secound_form = true; $_SESSION['user_code'] = rand(1, 999999); $_SESSION['user_id'] = $user->ID; // Send SMS global $sms; $sms->to = array($user_meta['mobile'][0]); $sms->msg = $_SESSION['user_code']; $sms->SendSMS(); How can i add String or a sentence before user_code then message would go like this ... The activation code is : user_code
5 Answers
+ 3
$sms->msg= "The activation cose is: ".($_SESSION['user_code']);
http://php.net/manual/en/language.operators.string.php
+ 3
the dot is used to concatenate strings
+ 2
thanks bro đ
+ 1
i should have used fullstop after the string?? i used , i think then gave me a 404 error
+ 1
double quotation or normal quote