Sample code for 30+ languages & platforms
PHP

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat PHP Downloads

Chilkat2 PHP
<?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";