1$x = "abc";
2$$x = 200;
3echo $x."<br/>";
4echo $$x."<br/>";
5echo $abc;
6
7// output:
8abc
9200
10200
1// Null Coalesce Operator - $statement ?? ''
2$categoryName = $category->name ?? 'Not Available';
3
4// The above Statement is identical to this if/else statement
5if (isset($category->name)) {
6 $categoryName = $category->name;
7} else {
8 $categoryName = 'Not Available';
9}