This works fine under WAMP with PHP 5.3 and Windows XP on my dev machine. But on a Unix/PHP 5.1 env it doesn't. I am looking to pull out "LineNumber" and "TaxAmount" from the XML for each iteration of the loop below, for each iteration "$tax_line" is always an object of simplexml_load_string (... (0 Replies)
Hi friends,
I am trying to validate the jil file programmatically. I plan to use the SDK provided by Autosys. Is CA provide any interfaces for this?
Another thing : What is Jil syntax checker or Jil verifier or Jil validator? Where is it available in autosys?
I am using R11 SP2 version... (0 Replies)
Dear Members,
this java already install in my machine
$ uname -a
SunOS maxdmail.com 5.10 Generic_139556-08 i86pc i386 i86pc
$ java -version
java version "1.5.0_17"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
Java HotSpot(TM) Client VM (build 1.5.0_17-b04,... (1 Reply)
Finally I was able to compile PHP on AIX. When I try to load from Apache, I get the below error.
/install/usr/local/apache2/bin:>apachectl -f /install/usr/local/apache2/conf/httpd.conf -k stop
httpd: Syntax error on line 53 of /install/usr/local/apache2/conf/httpd.conf: Cannot load... (0 Replies)
A number of people have asked me to make some videos, so I just got my first condenser microphone and so I can make some amateurish screen casts. I will try to do better in the future.
A quick overview of PubNub Live Chat @unix.com
The video is best is you set the Quality to HD 1080. The... (0 Replies)
Dear All,
We are now beta testing our future "Live Chat" area using PubNub technology.
https://community.unix.com/
This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork.
This "Live Chat" is not the... (48 Replies)
Discussion started by: Neo
48 Replies
LEARN ABOUT PHP
class_uses
CLASS_USES(3) 1 CLASS_USES(3)class_uses - Return the traits used by the given classSYNOPSIS
array class_uses (mixed $class, [bool $autoload = true])
DESCRIPTION
This function returns an array with the names of the traits that the given $class uses. This does however not include any traits used by a
parent class.
PARAMETERS
o $class
- An object (class instance) or a string (class name).
o $autoload
- Whether to allow this function to load the class automatically through the __autoload(3) magic method.
RETURN VALUES
An array on success, or FALSE on error.
EXAMPLES
Example #1
class_uses(3) example
<?php
trait foo { }
class bar {
use foo;
}
print_r(class_uses(new bar));
print_r(class_uses('bar'));
function __autoload($class_name) {
require_once $class_name . '.php';
}
// use __autoload to load the 'not_loaded' class
print_r(class_uses('not_loaded', true));
?>
The above example will output something similar to:
Array
(
[foo] => foo
)
Array
(
[foo] => foo
)
Array
(
[trait_of_not_loaded] => trait_of_not_loaded
)
SEE ALSO class_parents(3), get_declared_traits(3).
PHP Documentation Group CLASS_USES(3)