<title>Monkeybread Software - MBS FileMaker Plugin: PHP.GetResultString</title></head><body>PHP.GetResultString
-------------------

Returns the result of the last php script to run.

<style>
td.grau 
{
background-color:#EEE;
text-align: center;
}
</style>| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PHP](component_PHP.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "PHP.GetResultString" ) ### Parameters

none

### Result

Returns the result text.

### Description

Returns the result of the last php script to run.   
Used to retrieve the results back into to FileMaker after script is run with [PHP.Run](PHPRun.md) or [PHP.Execute](PHPExecute.md).  
### Examples

Run test code and get result:

$r = MBS( "[PHP.Run](PHPRun.md)"; "echo 'ok';" )  
$t = MBS( "PHP.GetResultString" )

### See also

- [PHP.Execute](PHPExecute.md)
- [PHP.GetVariable](PHPGetVariable.md)
- [PHP.Run](PHPRun.md)
- [PHP.SetVariable](PHPSetVariable.md)

### Example Databases

- [PHP/Simple\_php](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/PHP/Simple_php.shtml#1ScriptAnchor_)

### Blog Entries

- [PHP Functions in MBS Filemaker Plugin](https://www.mbsplugins.de/archive/2012-10-21/PHP_Functions_in_MBS_Filemaker/monkeybreadsoftware_blog_filemaker)

This function does not need a paid license.

Created 18th August 2014 , last changed 23th January 2023

  
[PHP.GetResultContainer](PHPGetResultContainer.md) - [PHP.GetVariable](PHPGetVariable.md)

💬 [Ask a question or report a problem](https://www.monkeybreadsoftware.com/feedback/?what=filemaker&path=PHP.GetResultString)

[HTML Version](PHPGetResultString.shtml)