Welcome Guest, Not a member yet? Register   Sign In
How to change eregi() to preg_match()
#4

[eluser]ibon[/eluser]
to WanWizard : Thanks a lot, it work ! :-)
and
to InsiteFX : Thanks for references Smile

I still got a problem with this code and how to fixed ? especially split()


function parseLines($p_CSVLines) {
$content = FALSE;
foreach( $p_CSVLines as $line_num => $line ) {
if( $line != '' ) { // skip empty lines
$elements = split($this->separator, $line);

if( !is_array($content) ) { // the first line contains fields names
$this->_fields = $elements;
$content = array();
} else {
$item = array();
foreach( $this->_fields as $id => $field ) {
$item[$field] = $elements[$id];
}
$content[] = $item;
}
}
}
return $content;
}


Messages In This Thread
How to change eregi() to preg_match() - by El Forum - 10-26-2010, 12:18 PM
How to change eregi() to preg_match() - by El Forum - 10-26-2010, 01:42 PM
How to change eregi() to preg_match() - by El Forum - 10-26-2010, 06:54 PM
How to change eregi() to preg_match() - by El Forum - 10-26-2010, 07:08 PM
How to change eregi() to preg_match() - by El Forum - 10-26-2010, 09:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB