PHP - Variable inside variable?

Posted by RC on Stack Overflow See other posts from Stack Overflow or by RC
Published on 2010-04-03T16:32:55Z Indexed on 2010/04/03 16:43 UTC
Read the original article Hit count: 571

Filed under:
|

Hey guys...

$bookA = "123";
$crack = "A";

I want to do something similar to this:

echo $book$crack;

Such that the output is 123.

What is the correct syntax for the echo command?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about variables