I’m trying to incorporate text differencing into my code igniter application, so I’m trying to import the PEAR Text_Diff library. However, the Text_Diff constructor requires two arguments, while the Pearloader only allows one.
From PEAR Documentation:
(see http://pear.php.net/package/Text_Diff/docs/latest/Text_Diff/Text_Diff.html)
Text_Diff Text_Diff( string $engine, array $params)
My CI code:
$this->load->library('pearloader');
$textdiff = $this->pearloader->load('Text', 'Diff', $arg1);
What I’d like to do:
$this->load->library('pearloader');
$textdiff = $this->pearloader->load('Text', 'Diff', $arg1, $arg2);
How do I pass two or more arguments into PEAR classes loaded by the pearloader library?
