Creating SEO-Friendly page URL from your Page Title / heading will very helpful to generate a highly optimized keyword rich URLs for your website, Here is the function to get the SEO-Friendly Page URL from given string.…
Convert HTML to PDF using PHP code (HTML2FPDF Class library) In web development, you often need to create PDF (Portable Document Format) to view or download/ print a document. Here is a simple class that will provide you a simple way to do create PDF.HTML2FPDF Class library consist of three classes namely PDF, HTML2FPDF…
Turning or convert MySQL data latin1 to utf8 The default character set for MySQL is latin1 (As of PHP 5.6.0, default_charset value is used as the default. From PHP 5.4.0, UTF-8 was the default, but prior to PHP 5.4.0, ISO-8859-1 was used as the default. It’s therefore a good idea to always explicitly specify…
PHP: Object Oriented Programming (OOP) php objects A class is a ‘blueprint’ for an object, just like a function that you’d declare and use, a class merely describes a type of object. Before you can do useful logical work with it, you need to create an object (in pure OOP terms instance of a…
Difference between Abstract class and Interface PHP An abstract class is a class that provides some functionality and leaves the remaining functionality for its child class to implement. The child class must provide the functionality not provided by the abstract class (parent) or else the child class also becomes abstract. To define a…
A Quick view on difference between PHP4 and PHP5 PHP5 has improvements in design, security, and stability as compared to PHP4, there are so many features of OOP added in PHP5 to make it more powerful and useful. If you want more details just go to http://www.php.net and find changes in php. Object Model/Passed…