0
私はPHP初心者で、学習を開始します。 ここに私のコードです:結果NuSoap to String PHP
<?php
include_once('nusoap/nusoap.php');
include_once('nusoap/class.wsdlcache.php');
$url = 'http://localhost:8082/ws/server.php?wsdl';
$client = new nusoap_client($url, true);
$proxy = $client->getProxy();
$username = 'admin';
$password = 'admin123';
$token = $proxy->GetToken($username, $password);
//this code to display ListTable
$table = $proxy->ListTable($token);
?>
テーブルの一覧を表示するには?私はこのコードを使用しようとすると:ますprint_r($表、TRUE)が、結果:私は値を印刷するには、このコードを使用している場合
Array
(
[error_code] => 0
[error_desc] =>
[result] => Array
(
[0] => Array
(
[table] => student
[category] => Ref
[information] => student information
)
[1] => Array
(
[table] => id_number
[category] => Ref
[information] => Student ID Number
)
[2] => Array
(
[table] => Address
[category] => Ref
[information] => Student Address
)
)
)
:ますprint_r($表)を、私はこの結果を得ました白い空白ページです。
私はこのような出力をしたいと思います:
<table border='1'>
<tr>
<td>Table</td>
<td>Category</td>
<td>Information</td>
</tr>
<tr>
<td>student</td>
<td>Ref</td>
<td>student information</td>
</tr>
<tr>
<td>id_number</td>
<td>Ref</td>
<td>student id number</td>
</tr>
<tr>
<td>information</td>
<td>Ref</td>
<td>student address</td>
</tr>
</table>
を助けてください。ありがとう。