recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
These functions allow you to obtain information about classes and instance objects. You can obtain the name of the class to which an object belongs, as well as its member properties and methods. Using these functions, you can find out not only the class membership of an object, but also its parentage (i.e. what class is the object class extending).
No external libraries are needed to build this extension.
There is no installation needed to use these functions; they are part of the PHP core.
This extension has no configuration directives defined in php.ini.
This extension has no resource types defined.
This extension has no constants defined.
In this example, we first define a base class and an extension
of the class. The base class describes a general vegetable,
whether it is edible or not and what is its color. The subclass
Spinach adds a method to cook it and another to
find out if it is cooked.
We then instantiate 2 objects from these classes and print out information about them, including their class parentage. We also define some utility functions, mainly to have a nice printout of the variables.
Example 2. test_script.php
One important thing to note in the example above is that
the object
|
Another Useful functions:
zend-macro.z-obj-class-name-p | zend-api.zend-update-class-constants | zend-api.zend-u-lookup-class | zend-api.zend-u-lookup-class-ex | zend-api.zend-u-fetch-class | zend-api.zend-register-internal-class | zend-api.zend-register-internal-class-ex | zend-api.zend-register-default-classes | zend-api.zend-lookup-class | zend-api.zend-initialize-class-data | zend-api.zend-get-object-classname | zend-api.zend-get-class-entry | zend-api.zend-fetch-class | zend-api.zend-disable-class | zend-api.zend-declare-class-constant | zend-api.zend-declare-class-constant-stringl | zend-api.zend-declare-class-constant-string | zend-api.zend-declare-class-constant-long | zend-api.zend-declare-class-constant-double | zend-api.zend-declare-class-constant-bool | zend-api.zend-cleanup-class-data | zend-api.zend-class-implements | zend-api.get-active-class-name | zend-api.do-bind-inherited-class | zend-api.do-bind-class | zend-api.destroy-zend-class | reserved.classes | ref.classobj | ref.classkit | migration52.classes | migration52.class-constants | function.spl-classes | function.soap-soapserver-setclass | function.runkit-class-emancipate | function.runkit-class-adopt | function.mcal-event-set-class | function.is-subclass-of | function.get-parent-class | function.get-declared-classes | function.get-class | function.get-class-vars | function.get-class-methods | function.dom-domdocument-registernodeclass | function.classkit-method-rename | function.classkit-method-remove | function.classkit-method-redefine | function.classkit-method-copy | function.classkit-method-add | function.classkit-import | function.class-parents | function.class-implements | function.class-exists | function.bcompiler-write-class | function.bcompiler-parse-class | | class.variant | class.dotnet | class.dir | class.com |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.