e-Planet

January 29, 2009

Loose and multiline parse_ini_file function in Php

PHP - Jean-Jacques Guegan

Some time ago, I was looking for a multiline parse_ini_file function to use in one of my scripts.

I found nothing on the web apart from other people looking for the same thing. So I decided to do it myself...
(more...)

November 18, 2005

How to get a variable name as a string in PHP

PHP - Jean-Jacques Guegan

On rare occasions, you may need to retrieve a variable name as a string.

This handy little function retreives the name of the variable:

 
<?php
      $my_var = 1;
      echo var_name ($my_var);
?>
 

will give 'my_var'.

(more...)

 
Powered by WordPress
Copyright Mach13