answersLogoWhite

0

What are the benefits of using pointers in PHP?

Updated: 8/16/2019
User Avatar

Wiki User

12y ago

Best Answer

Pointers hold reference to variable value which is already declared in memory. Say suppose

$x = 2; // Here variable is assigned value 2 in memory

Now $y = &$x; // This basically points to the variable which is already allocated the value

The use of pointers could greatly reduce memory usage if used correctly.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the benefits of using pointers in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the benefits of using PHP redirect?

When using PHP redirect, you can redirect potential online traffic to the correct website, making it faster and simpler for the consumer. When the consumer is happy, it means more money in your pocket.


Are there any performance benefits over using PHP as opposed to ASP?

PHP code runs faster than ASP. ASP is built on COM based architecture, which is an overhead for the server whereas PHP code runs in its own memory space.


Does android supports PHP?

It supports websites made on php but not coding in php. There are workarounds for coding in PHP using Android.


Is Answers.com coded using PHP or ASP?

If you're referring to Answers.com, it's built using PHP as a backend.


How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


Why do we use Php?

PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.


What are restricted pointers in C99?

Using this you specify that two pointers can't point on the same address


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


How to display a variable in PHP using echo or print statements?

displaying a variable in php using echo statement? <?php $name="ram"; //declaring and defining the variable echo "$name"; //printing the variable using echo command ?>


What are some of the benefits of using the MakeupAlley website?

Makeup Alley is a website devoted to cosmetics reviews, tips, and pointers. Some benefits of using the website include getting information on cosmetic products, finding the right type of make-up for the individual, and finding great prices on cosmetics.


How do you output a star using PHP?

type this in a file save it as something.php and then run it <?php echo '*'; ?>


What are the benefits of using mySQL in designing a website?

There are several benefits of using MySql. Here are some1) Open Source2) Easy embedded on php and apache web server.3) Easy to create an integrated web development platform4) MySQL 5.1 is support for horizontal partitioning.many more...