PHP
Chilkat2 PHP
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat PHP Downloads
<?php
use Chilkat2\StringBuilder;
$sb = new 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>');
echo 'Company Name = ', $companyName, "\n";