Short Tag – Web Development Blog

Entries for November, 2012

PHP Reflection Class – The basics

Part1 – Using the ReflectionClass in PHP to get basic information about a class.
Build the Refelection Class

$class = new ReflectionClass($className);

$className – can be the name of any class
Get the name of the class:

echo $class->getName()

Get the name of the file that contains the class:

echo $class->getFileName()

Get the class inherited by this class:

echo $class->getParentClass();

Get all the list [...]

CSS3 input highlight on focus with transition

CSS3 makes your job a lot easier with it’s new features.
For example creating an input that will highlight on focus with animation is an easy task now with CSS3 in comparison with all the work it would’ve needed with javascript and CSS2.
Style all the inputs, textareas and combo boxes:

input, select, textarea
{
background: [...]