Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 988
  • Last Modified:

php: meaning of "?@"

What is the meaning of ?@ in a construct like this
                  $var = array
                        '{?@Customer}' => $Customer,
                        '{?@Month}'    => $Month,
                        '{?@Year}'     => $Year,

Thank you in advance for any help.
@+ P Marione
1 Solution
pmmmsAuthor Commented:
I think that "?@Customer" is the convention to name a parameter in Crystal Report but I don't understand the meaning of the { } here.

@+P Marione
Since it's rounded with single quotes - it has no meaning for php engine at all !?
It means nothing, the single quotes don't invoke the interprerter, it would be different if it had double quotes.
pmmmsAuthor Commented:
What would it means with double quotes?

php differs between two types of strings: the ones enclosed in double quotes, and the one enclosed in single quotes. the difference is the following: the double quotes are ecutally parsed by the php interpreter, and variables inside are properly filled with its values, while single quotet are not parsed at all, so are used for real string literals. a short example:

$var = 15;
echo '$var=$var';
echo "\$var=$var";

would give as an output:


here the first string is enclosed by a single quote, so it is a real literate, while the second is first parsed by the php engine, and variables are replaced by their values. you can also write the first string this way:

$var = 15;
echo '$var=' . $var;
echo "\$var=$var";

now both stings would be the same....

that's why the above sample doesn't mean anything by the means of the php language itself, it is a real constant literal, not interpreted by the language itself, I guess it is just some convention to name parameter keys in some famework.....? where did you see this code?

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now