DOCUMENTATION
  •   Pages
  •   Videos
  • My Account
    • Login
    • Register
  • Getting Started
  • Extenso
  • Components
    • Forms
    • Shared Content (ct)
    • Tables
    • Child Tables
    • Sessions
    • Templates
    • Themes
    • Components
    User Section
    • Edit content with pencils
    • Quick Access Menu
    Developer Section
    • Environment and structure
    • Building a Website
    • Installation & configuration
    • Development Standards
    • Create a component
    • Image Processor Guide
    • Grid
  • Sncode
  • IntroductionThe Basics
    • Classes
    • Condition Statements
    • Functions
    • Loop Statements
    • Operators
    • Packages
    • Ternary Operator
    • Variables & Types
    Advanced
    • Dynamic Evaluation
    • In-Memory File Cache
    • Running CLI scripts
    Library
    • Array
    • Cryptography
    • Date
    • Database
    • DBHash
    • Files
    • GD
    • Hashtable
    • Mail
    • Math
    • Request
    • Response
    • String
    • Utils
    • Web
    • XML
  • Useful Links
  • APR
function

delvar . utils . sncode

VERSIONlatest Delete a variable.

DELVAR

NAME

delvar - Delete a variable.

SYNOPSIS

delvar (var1, …);

DESCRIPTION

Delete a variable. Entry in context or array cannot be deleted

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

res= {_{ a=5;
b=6;
a; b;
delvar(a,b);
a=4;
a; b;
}}.

return res= 564.

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

Other functions in Utils

console

Output a string to error_log.

console_​local

Output a string to local error_log.

dump

Dump all variables.

error

Generate an error and stop execution.

existc

Check if a class exist

existf

Check if a function exist

existm

Check if a method exist in a class

existu

Check if a user function exist

exit

Set return status code and stop.

finish

Finish execution.

listc

Return an array of all class currently defined.

listf

Return an array of all system functions

listm

Return an array of all method currently defined.

listu

Return an array of all user functions

pool

Push an existing pool or create a new one

ref

Return the value of a variable

replace

Replace current execution file.

set_​filename

Set current filename to process.

sleep

Sleep for a while

stop

Stop execution.