Convert string to variable in PHP?

Posted by iamdadude on Stack Overflow See other posts from Stack Overflow or by iamdadude
Published on 2010-06-13T02:47:25Z Indexed on 2010/06/13 2:52 UTC
Read the original article Hit count: 320

Filed under:
|

Hey guys,

How do I go about setting a string as a literal variable in PHP? Basically I have an array like

$data['setting'] = "thevalue";

and I want to convert that 'setting' to $setting so that $setting becomes "thevalue".

Thanks for any help!

© Stack Overflow or respective owner

Related posts about php

Related posts about variables