From:             lifehome at usociety dot info
Operating system: Debian Squeeze
PHP version:      Irrelevant
Package:          *General Issues
Bug Type:         Feature/Change Request
Bug description:Perhaps more detail on how to get the value of 'foo' and 'bar' 
in 'myClass' ?

Description:
------------
---
>From manual page:
http://www.php.net/function.get-class-vars#refsect1-function.get-class-vars-examples
---
I understand the first part, but how do I get the value of 'foo' and 'bar'
in the functino of 'myClass" within the class 'myClass'? It's confusing me
while the get_class_vars() and get_class()... I'm totally a noob on PHP
programming so please point out if I was wrong...

Test script:
---------------
' http://pastebin.com/xGXgnBEd ' -- the class I use
===================================================
A string returns from the link:
1367502965000:deprecated:abcget:1968194347980167531:ce391600756e455db7a529f11fe6f558
===================================================
<?php

$username = abcget
$password = foobar

$api = new MinecraftAPI();

$apinfo = get_object_vars(get_class($api->login));
$api_array = $apinfo['minecraftValues'];
$ign = $api_array[2];
$uid = $api_array[4];

echo $ign."<br/>;
echo $uid;

Expected result:
----------------
abcget<br/>ce391600756e455db7a529f11fe6f558


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64880&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64880&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64880&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64880&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64880&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64880&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64880&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64880&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64880&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64880&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64880&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64880&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64880&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64880&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64880&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64880&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64880&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64880&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64880&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64880&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64880&r=mysqlcfg

Reply via email to