PHP ActiveX
PHP ActiveX
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat PHP ActiveX Downloads
<?php
$sb = new COM("Chilkat.StringBuilder");
$sb->Append('<company><name>Chilkat Software</name></company>');
// For example, to get the company name in the string above...
$companyName = $sb->getBetween('<name>','</name>');
print 'Company Name = ' . $companyName . "\n";
?>