+ 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

5th May 2017, 5:34 PM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
5 odpowiedzi
+ 3
$sms->msg= "The activation cose is: ".($_SESSION['user_code']); http://php.net/manual/en/language.operators.string.php
5th May 2017, 5:57 PM
seamiki
seamiki - avatar
+ 3
the dot is used to concatenate strings
5th May 2017, 6:00 PM
seamiki
seamiki - avatar
+ 2
thanks bro 😍
5th May 2017, 6:02 PM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
+ 1
i should have used fullstop after the string?? i used , i think then gave me a 404 error
5th May 2017, 5:59 PM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
+ 1
double quotation or normal quote
5th May 2017, 6:11 PM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar