MCPcopy Create free account
hub / github.com/php/frankenphp / greet

Function greet

testdata/integration/namespace.go:17–21  ·  view source on GitHub ↗

export_php:function greet(string $name): string

(name *C.zend_string)

Source from the content-addressed store, hash-verified

15
16// export_php:function greet(string $name): string
17func greet(name *C.zend_string) unsafe.Pointer {
18 str := frankenphp.GoString(unsafe.Pointer(name))
19 result := "Hello, " + str + "!"
20 return frankenphp.PHPString(result, false)
21}
22
23// export_php:class Person
24type PersonStruct struct {

Callers

nothing calls this directly

Calls 2

GoStringFunction · 0.92
PHPStringFunction · 0.92

Tested by

no test coverage detected