Re: Assign value to variable
In article <d3354680.0410080907.4c50e18b@posting.google.com >, Mike wrote:
> Is there any way I can use a function to create a variable and assign
> a value to it? I have a Perl script that returns some LDAP
> information:
>
> sn=Shore
> givenname=Mike
> logintime=20041008153445Z
> logindisabled=FALSE
>
> Instead of parsing this text and assigning the values, I was wondering
> if a function exists where I can pass a variable name and a value, and
> the variable would be created.
The output looks like what i see in a ini file, so you could consider
using ini_get?
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
|