When using a Fetch( )) function to retrieve the data from a url or other source, you can specify and filter results in your Interactions.
These functions can be naturally generated by the "Code Builder" in the Interactions Manager.
Basic Madl components used in the formatting or changing of fetched data in Interactions.
$t->trim( )
This function will find removes white space off start and end of any data found in the fetch results.
Parameters | |
---|---|
None |
Return Values | |
---|---|
$t->result | Returns page source or structured data / XML into variable $t |
$t->fetch("[http://blinkmobile.com.au/mobile-solutions/");] $t->between("", ""); $t->trim(); $t->after(" // result;
$t->preg_replace( )
This function will find removes white space off start and end of any data found in the fetch results.
Parameters | |
---|---|
For more information on parameter see the php guide at [http://php.net/manual/en/function.preg-replace.php] |
Return Values | |
---|---|
$t->result | Returns page source or structured data / XML into variable $t |
$t->fetch("[http://blinkmobile.com.au/mobile-solutions/");] $t->between("", ""); $t->trim(); $t->after(" // result;