Category: Web Development Tips

Change wordpress excerpt length 0

Change wordpress excerpt length

Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) { return 50; } add_filter(‘excerpt_length’, ‘ratanjyot_solutions_excerpt_length’); The above code set...

How to Replace Newline with Space Using PHP 0

How to Replace Newline with Space Using PHP

Sometimes you need to replace newline to space or any other format (i.e:- \r\n). This is done by copying and pasting the content. To resolve this problem I use the given blow code. $remove_character...

What is the difference between MyISAM and InnoDB? 0

What is the difference between MyISAM and InnoDB?

The main difference between mysql table type MyISAM and InnoDB is that InnoDB supports transaction by MyISAM does not. MyISAM support full text search but InnoDB does not. InnoDB supports some new features: Transactions,...

How to get number of days between two dates in PHP 0

How to get number of days between two dates in PHP

By the given blow script we can find the number of days between two dates <?php $first_date = strtotime(“2010-08-01”); // or current date as well $second_date = strtotime(“1988-08-01”); $datediff = $first_date – $second_date; echo...