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 4 years ago.
Improve this question
In PHP I want to assign address of variable, like in C Language we use * pointer to assign or store address of any variable. In php the variable address assigning system is possible or not?
You can't get the pointer address but you can use references
$var1 = &$var2
Related
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
a challenge like this $_GET['2020'] snippet boring me a long time, i want to know how this work, but do not know which keywords to search, maybe how the parameter works?
$_GET reads querystring parameters from the URL. So if someone goes to your PHP script with a URL like http://servername/scriptname.php?2020=ABC then when the PHP script runs, the variable $_GET['2020'] will contain the value ABC.
More info is available in the documentation: https://www.php.net/manual/en/reserved.variables.get.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;
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 7 years ago.
Improve this question
I am trying to make a simple PHP program. I am trying to get the value from the URL and check if the dev is equal to true. I am using this code:
if($_GET['dev']==true){...}else if($_GET['dev']==false){...}
$_GET variable are all strings, you will need to cast it to a boolean
if (isset($_GET['dev']))
{
$dev= (bool) $_GET['dev'];
if($dev){
}
}
details are not enough, tell us more about your problem.
maybe you need to compare dev to a string and not to boolean:
if($_GET['dev']=="true"){...}else if($_GET['dev']=="false"){...}
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
When we pass an array as an argument to a function, what actually gets passed?
Someone told me that it is "Base address of the array"? but I am not sure about it. How this array is processed then?
this is the answer: Are arrays in PHP passed by value or by reference?
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
I wonder if you could also send vars without using hidden input, because input hidden is always readable in the code
You can use $_SESSION or continue using hidden inputs with encrypted name and value, then the user has no clue what they are reading.