How to add a strings with a numberical value in PHP [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
In my laravel controller, I get phone number from user input (01711111111). I want to add country code (88) with the user input, so total result will be like 880171111111. How can I add a string with the numerical value? This code shows error.
$client_phone=$request->phone_number;
$client_phone1='88'+$client_phone;

concatenation operator ('.')
$client_phone1 = '88' . $client_phone;

Related

How to make if else if have search query in my url [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
i have url with string like this
example.com/?id=
i want to create a condition when my url looks like this in a search query
Thank you to all of you

Regular Expression in Laravel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Well, I Will developer a close blog in laravel, this blog needs take the name of the people who has logged!
I wanna replace for example {[userName]} for auth->user()->name()
I Will write {[userName]} in my text editor Ane show the name of user logged in my view!
i think just use str_replace
eg:
$input = "My name is [USERNAME]";
echo str_replace("[USERNAME]", auth->user()->name(), $input);

Determine source of code that is making a query [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Exist any way to know the source page that is calling the query and store it?
Are you looking for $_SERVER['PHP_SELF'] ?
Check also print_r($_SERVER) if something is more accurate for what you need

Regular expression to match a string with out space with string with spaces [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Using php+mysql how can i get an item from database with a criteria as shown below.
Check if string lookat(which is 'look at' without space) exist in Take an in-depth look at Wednesday's World Cup semifinal
If you have a lot of data in your table, this wouldn't be ideal. But you could do something like.
WHERE REPLACE(column, " ", "") LIKE "%lookat%"

Text area FielD display Sql value [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Im making a page to dit DB registers and i cant set the text area to display the value in db as the others :x I want it to display the DB value as all other so I can edit it.
My page
http://img.needforgaming.x10.mx/edit.php?NS24=24
Try:
'<textarea>' . $sSomeText . '</textarea>'

Categories