Jump to content

Method chaining question


p_t

Recommended Posts

Hi all,

 

I am currently working on a class which will be use for mysql query.

 

$inst = new Class();

$inst->select('*')->fields(array('one','two','three','four'))->where('name=hello')->where('date=20-02-1928')->where('test=1')->order('date')->order('time');

 

How can i go on about storing all the values in method 'where()' into an array??

 

Thanks ,

Pez

Link to comment
https://forums.phpfreaks.com/topic/138088-method-chaining-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.