Is PHP is procedure oriented or object oriented?
Answers were Sorted based on User's Feedback
Answer / uttam thakor
PHP is Both Procedure oriented and Object Oriented.
We have the choice of using procedural programming or object
oriented programming, or a mixture of them.
Although not every standard OOP feature is implemented in
PHP 4, many code libraries and large applications (including
the PEAR library) are written only using OOP code.
PHP 5 fixes the OOP related weaknesses of PHP 4, and
introduces a complete object model.
Thanks.
| Is This Answer Correct ? | 38 Yes | 2 No |
Answer / master
php is a hybrid language which has got both procedure and
oop concepts.
so you can take it in any way
| Is This Answer Correct ? | 16 Yes | 3 No |
Answer / hyma
No,PHP is object oriented language.PHP5 added the oops
concepts.
| Is This Answer Correct ? | 12 Yes | 10 No |
Answer / srinivasa rao
PHP is object based language. It supports OOPS features as
well as normal procedural programing. It is similar to C++.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / payal
PHP is a object oriented language. We can not say it is a
purely object oriented Lang. like Java, but it has covered
major OOPs concept in version 5.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / apple
PHP is procedural language.
and is NOT object oriented language even in relese of version 5.
php5 and later versions support some of OO features.
| Is This Answer Correct ? | 4 Yes | 11 No |
Tell me what is the use of the function htmlentities?
How can I find the width and height of an image resource?
2 Answers Rushmore Consultancy,
To find out the current year is leap year or not which date() function we've to use.Give the syntax also
How to set cookies?
<?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
What does echo mean in php?
Where are the persistent cookies stored on your computer?
what is the post and get method??
What is the use of "ksort" in php?
How can I convert ereg expressions to preg in php?
Explain the difference between urlencode and urldecode?
Can php use gettext?