Generate a phrase to url.

str_replace (PHP 4, PHP 5) str_replace — Replace all occurrences of the search string with the replacement string $vowels = array(“a”, “e”, “i”, “o”, “u”, “A”, “E”, “I”, “O”, “U”); $onlyconsonants = str_replace($vowels, “”, “Hello World of PHP”);

How to write IE specific PHP

if((ereg(“Nav”, getenv(“HTTP_USER_AGENT”))) || (ereg(“Gold”, getenv(“HTTP_USER_AGENT”))) || (ereg(“X11”, getenv(“HTTP_USER_AGENT”))) || (ereg(“Mozilla”, getenv(“HTTP_USER_AGENT”))) || (ereg(“Netscape”, getenv(“HTTP_USER_AGENT”))) AND (!ereg(“MSIE”, getenv(“HTTP_USER_AGENT”)) AND (!ereg(“Konqueror”, getenv(“HTTP_USER_AGENT”))))) $browser = “Netscape”; elseif(ereg(“MSIE”, getenv(“HTTP_USER_AGENT”))) $browser = “MSIE”; elseif(ereg(“Lynx”, getenv(“HTTP_USER_AGENT”))) $browser = “Lynx”; elseif(ereg(“Opera”, getenv(“HTTP_USER_AGENT”))) $browser = “Opera”; elseif(ereg(“WebTV”, getenv(“HTTP_USER_AGENT”)))… Read moreHow to write IE specific PHP

List 50 posts of wordpress.

If you want to list 50 posts, use the following code: <ul>  <?php  global $post;  $myposts = get_posts(‘numberposts=-1’);  foreach($myposts as $post) :  ?>     <li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>  <?php endforeach; ?>  </ul> if you want to list all… Read moreList 50 posts of wordpress.