Posted by Hendri Kurniawan on 04/04/07 01:21
Andy Hassall wrote: > You'll need a temporary variable for the name. > > $field = 'f_' . $fieldname[1]; > echo $obj->$field; IMHO no need to put a temp var. just do: echo $obj->{'f_'.$fieldname[1]}; Hendri
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming