php: meaning of "?@"

Posted on 2008-11-19
Last Modified: 2013-12-13
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
Question by:pmmms

    Author Comment

    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
    LVL 43

    Accepted Solution

    Since it's rounded with single quotes - it has no meaning for php engine at all !?
    LVL 13

    Expert Comment

    It means nothing, the single quotes don't invoke the interprerter, it would be different if it had double quotes.

    Author Comment

    What would it means with double quotes?
    LVL 1

    Expert Comment


    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

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now