String based table content formatting
Message :
Employee
Showing 1 to 5 of 94 entries

You can format table column using various string functions. For example you can make any table column content to uppercase, first letter uppercase, lowercase or you can add prefix, suffix etc.
$pdocrud = new PDOCrud(); //Add prefix (e.g. Mr.) in first name $pdocrud->tableColFormatting("first_name", "string",array("type" =>"prefix","str"=>"Mr. ")); //make firstname upper case $pdocrud->tableColFormatting("first_name", "string",array("type" =>"uppercase")); //make lastname lower case $pdocrud->tableColFormatting("last_name", "string",array("type" =>"lowercase")); //Add suffix $pdocrud->tableColFormatting("Address", "string",array("type" =>"suffix","str"=>" ")); echo $pdocrud->dbTable("employee")->render();