What is substr() in php? And how it is used?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

hi recently i had faced an interview in that they asked me that php have faced the problem of y2k so which one is that year like 2030,2059 not remember exact year anybody will tell me pls?

1 Answers  


What is active record in php?

0 Answers  


What are the advantages of object-oriented programming in php?

0 Answers  


Are parent constructors called implicitly inside a class constructor?

0 Answers  


how to convert PHP code in to java code

4 Answers  






Tell me what type of operation is needed when passing values through a form or an url?

0 Answers  


What is a php array?

0 Answers  


Explain Parsing and Execution in PHP? Where PHP Engine Return errors?

3 Answers   CMC,


<?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2005 Andrew Eddie * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <?php $database =& JFactory::getDBO(); //$sql = 'SELECT name, username FROM #__users'; $sql="select a.id, a.title, a.introtext, a.created_by, a.created from jos_content a, jos_content_frontpage b where a.id=b.content_id and b.ordering='2'"; $database->setQuery( $sql ); $user = NULL; $user = $database->loadObject(); //echo 'Name: ' . $user->name . '<br />'; echo '<h1>' . $user->title . '</h1><br />'; //echo 'Username: ' . $user->username; echo ' ' . $user->introtext; i write this and fetch the result from the database the result is The Intranet is up and working ! Our intranet is up and working and should be accessible from both Mumbai and NOIDA. As you will notice, this template, look & feel is not in line with our corporate indentity but we chose the route of "form-follows-funtion" In the first phase, we are rolling out functionality that is critical to all of us - Policies and How-to documents. In subsequent phases, we will be launching other features. Keep watching this space for more details i want to see only 4 line of top then how this may done

0 Answers   Infovision,


How can we know the count/number of elements of an array?

3 Answers  


What is php how it works?

0 Answers  


Write logic to print Floyd's triangle in PHP?

0 Answers  


Categories