No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Hi, I'm writing a program that parses a *lot* of log files into a database. It's completely O-O, and each object opens a database connection to mysql using [B]mysqli->connect()[/B]. Here's my problem - the program works great for a limited number of log files, but if I run it over …
If you're willing to allow scientific notation etc.., how about using is_numeric(): From the manual: [url]http://us3.php.net/is_numeric[/url] bool is_numeric ( mixed var ) Finds whether the given variable is numeric. Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part. Thus +0123.45e6 is a …
The End.
smac