Monthly Archives: May 2009

string to constant

Share constant (PHP 4 >= 4.0.4, PHP 5) constant – Returns the value of a constant Description mixed constant ( string name )constant() will return the value of the constant indicated by name. constant() is useful if you need to … Continue reading

Posted in php | Tagged , | Leave a comment

Which is best for monetary data: double, float, decimal

ShareFor floating-point data types, MySQL uses four bytes for single-precision values and eight bytes for double-precision values. The FLOAT and DOUBLE data types are used to represent approximate numeric data values. For FLOAT the SQL standard allows an optional specification … Continue reading

Posted in mysql | Tagged , , , , , | Leave a comment

php string functions

Share Name Description ASCII() Return numeric value of left-most character BIN() Return a string representation of the argument BIT_LENGTH() Return length of argument in bits CHAR_LENGTH() Return number of characters in argument CHAR() Return the character for each integer passed … Continue reading

Posted in php | Tagged , , , , | Leave a comment

regex: matching character +

Shareregex matching charater “+” Example: ad+ will match add, adD, addng but not ab or ac or a Related article: http://dreamluverz.com/developers-tools/regex/regex-matching-characters

Posted in regex | Tagged , | Leave a comment

css: display vs visibility

ShareTip: Even invisible elements takes up space on the page. Use the “display” property to create invisible elements that do not take up space. Definition The visibility property sets if an element should be visible or invisible. Inherited: No Tip: … Continue reading

More Galleries | Leave a comment