Zend Anwar

Full stack web developer

Author: zendnwar

What is substr() in php?

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 More

What is the difference between Split and Explode?

split()-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 More

What’s the difference between htmlentities() and htmlspecialchars() in php?

htmlspecialchars:  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 More

Hello world php script.

Just 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 More

What is PHP?

What 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 More

PHP Basic

I 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 More

Zend PHP 5.3 certification practice question

1.    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 More

Zend Framework – Hello World

Quick 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 More

What Is Robots.txt?

What 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 More

SEO expert in Bangladesh

Anwar 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