substr() This function returns a part of a string. substr(string,start,length) string : The input string. Must be one character or longer. start : The start is how many characters in to skip before starting. Setting this to 3 would skip the first three and start returning at the forth character. Setting this to a negative […]
Read Moresplit()-used for JavaScript for processing the string and the explode()-used to convert the String to Array, implode()-used for convert the array to String. split() can work using regular expressions.but Explode use only single value to explode string into Array Here the Example <?php $date = “04/30/1973″; list($month, $day, $year) = split(‘[/.-]’, $date); ?> ……………………………………………………………………… <?php […]
Read Morehtmlspecialchars: Convert special characters to HTML entities. htmlentities: Convert all applicable characters to HTML entities. htmlspecialchars only takes care of <, >, single quote ‘, double quote ” and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML. <?php $str = “A ‘quote’ is <b>bold</b>”; echo htmlentities($str); echo htmlentities($str, ENT_QUOTES); […]
Read MoreJust copy the below code and run from your local server. <html> <head> <title>Hello World</title> <body> <?php echo “hello, world”;?> </body> </html> output: hello, world
Read MoreWhat is PHP? Devised by Rasmus Lerdorf in 1994,PHP is a programming language that allows building dynamic, interactive websites. PHP stands for PHP: Hypertext Preprocessor.PHP is a server-side scripting language.PHP scripts are executed on the server.PHP supports many databases like MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC. PHP is open source software. PHP is […]
Read MoreI am Anwar Hossain, Expert web Programmer. Working More than 4 years on php. Also working several CMS and Framework like CMS(Joomla1.5 to 2.25,Wordpress And Drupal), Zend framework1.11, Cakephp1.3 version. Also working in Design pattern like html/xhtml,css2/css3,Photoshop and flash animation. I am also SEO specialist.And SEO trainer. I will try to explain Basic php related […]
Read More1. What will be the output of following code.Options <?php echo 1 . 2; ?> 2. is_float() is a valid php function?. Options A. True B. False 3. What will be the output <?php $stack = array(“orange”, “banana”, “apple”, “raspberry”); $fruit = array_shift($stack); print_r($fruit); ?> A. array(“orange”,”banana”,”apple”) B. array(“”banana”,”apple”,”raspberry”) C. Number of parameter passed is […]
Read MoreQuick Start Zend Framework Hello World Program Install Zend Framwork1.11 on you localhost Create your file system application/ controllers/ IndexController.php models/ views/ scripts/ index/ index.phtml helpers/ filters/ html/ .htaccess index.php Rewrite .htaccess file RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ – [NC,L] RewriteRule ^.*$ index.php [NC,L] […]
Read MoreWhat Is Robots.txt? The Robot Exclusion Standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web crawlers and other web robots from accessing all or part of a website which is otherwise publicly viewable. Robots are often used by search engines to categorize and archive web sites, […]
Read MoreAnwar Hossain SEO expert in Bangladesh. Also expert in Web Programming. SEO related all type task Like SEO ,SEM, SMM, SMO and PPC can do. I am very efficient SEO expert. I believe that “Quality work at affordable cost”. I am also Trainer on SEO. Teaching lots of student in Bangladesh about.Already Some student successfully […]
Read More