What is the Use of a double dollar sign in php?

1 answer

Answer

1198655

2026-04-14 15:25

+ Follow

A double dollar sign in php makes a variable with a name equal to the value of the original variable. It works like this:

$var = "keith";

$$var = "palmer";

print ($keith);
// The output is: palmer

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.