phpconstant(
VALUE
)

The phpconstant( function encodes text for use as a contant in a php program.


Parameters

This function has one parameter:

value – the value to be encoded. This value may be text, in which case it will be properly quoted. Any special characters in the text will be escaped. The value may also be numeric, in which case it is passed thru “as-is”.


Description

This function encodes text for use as a contant in a PHP program.

phpconstant("he said 'boo' then left") ☞ 'he said \'boo\' then left'
phpconstant(3264) ☞ 3264

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.