PHP code example of ddphp / ehd

1. Go to this page and download the library: Download ddphp/ehd library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ddphp / ehd example snippets


$member = new \Ehd\Member();

// 查询字段:custid custname custsjh custsfz ynallnew
$condition = '288****55';  // 作为卡号
// or $condition = ['custid' => '288****55', ...]; 
$member->wsdl($wsdl)->where($condition)->find();

$member->getArchives();   // return array
$member->getArchives('custid');  // return string
$member->getArchives(['custid', 'name']);  // return array

$member->adjustScore(-1, '新版积分调整测试');  // return bool

$member->changeArchives($newArchives);  // return bool