Closed xulei8 closed 8 years ago
You can bind Go variables (except for functions and method receivers) into PHP using the Context.Bind
method. Transformation rules are covered in the value.New
preamble.
You can return PHP variables for use in the Go context using Context.Eval
, which returns a non-nil *Value
type if the eval'd string returns anything.
As an aside, the included tests are usually a good example of how the code is supposed to be used. For example, binding Go variables to PHP contexts here.
Closing this as already implemented, please open a new issue if there's some missing functionality here.
We need put or get values to php script in golang .