Elogix is an incredibly powerful & fully responsive WordPress Theme.
Open
X

Posts Tagged 'string'

Datetime value to string in PHP

Posted on August 6th, 2010 · Posted in Blog, PHP

This one escapes me everytime I need which results to much googling. The function is to convert SQL datetime value to human-readable format. /*  *   Converts the likes of ’2010-08-01 14:57:15′ to ’August 1, 2010, 2:57 pm’  */   $datetime_value =”2010-08-01 14:57:15″;.. read more

Trim String in C++

Posted on November 22nd, 2009 · Posted in C++

Funny how a trivial task like trimming trailing spaces in C++ gets a bit harder if you insist on using STL (standard template library). But the good thing is, the.. read more

String Replace in C++

Posted on November 20th, 2009 · Posted in Uncategorized

As I’m just a C++ poser, I don’t know a lot of things programming in this language especially if I have to deal with STL (Standard Template Library). As some.. read more