Follow

experts: is there any non-destructive way to tell if a variable contains a reference rather than a literal value?

· · Web · 1 · 2 · 1

Okay, I started writing up my own documentation as part of the process of researching and understanding how this works...

...and basically, it's a meaningless question. All PHP variables are references. All the reference operator does is affect whether what you're accessing (assigning, returning) is the value or the location of the value.

Still reading the docs, though.

Show thread
Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!