Home > Backend Development > PHP Problem > What does $$ mean in PHP?

What does $$ mean in PHP?

王林
Release: 2023-02-23 10:26:01
Original
4663 people have browsed it

First, we give a piece of code:

<?php
$a = &#39;abc&#39;;
$$a = &#39;789&#39;;
echo $abc;
?>
Copy after login

The result is shown in the figure:

What does $$ mean in PHP?

##Explanation:


$a ='abc';

$$a can be understood as parsing the following $a first, then parsing it, and finally parsing it into $abc

So directly printing $abc is a variable , it prints out as 789

For more related PHP issues, please visit the PHP Chinese website:

php video tutorial

The above is the detailed content of What does $$ mean in PHP?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
$
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template