What is substr() in php?
-
zendnwar
-
July 20, 2012
-
PHP Basic
-
1 Comment
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 number will start counting backwards …
Continue Reading
What is the difference between Split and Explode?
-
zendnwar
-
July 20, 2012
-
PHP Basic
-
1 Comment
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 $x=”PHP is a ServerSide Scripting …
Continue Reading
What’s the difference between htmlentities() and htmlspecialchars() in php?
-
zendnwar
-
July 20, 2012
-
PHP Basic
-
0 Comments
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); ?> OUTPUT A ‘quote’ …
Continue Reading
Hello world php script.
-
zendnwar
-
July 18, 2012
-
PHP Basic
-
0 Comments
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
Continue Reading
What is PHP?
-
zendnwar
-
July 18, 2012
-
PHP Basic
-
0 Comments
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 free to download and use. …
Continue Reading
PHP Basic
-
zendnwar
-
July 18, 2012
-
PHP Basic
-
0 Comments
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 description and example. Stay close …
Continue Reading
Zend PHP 5.3 certification practice question
-
zendnwar
-
July 18, 2012
-
Zend basic
-
3 Comments
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 incorrect D. orange 4. What …
Continue Reading
Zend Framework – Hello World
-
zendnwar
-
July 18, 2012
-
Zend basic
-
0 Comments
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 Open the file application/controllers/IndexController.php, and …
Continue Reading
What Is Robots.txt?
-
zendnwar
-
July 17, 2012
-
SEO
-
0 Comments
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, or by webmasters to proofread …
Continue Reading
SEO expert in Bangladesh
-
zendnwar
-
July 17, 2012
-
SEO
-
0 Comments
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 has been completed there training …
Continue Reading