Function: user_error version 133

Function:
Description: Alias of trigger_error().
Version:
Status: latest
Date: 2011-12-20 05:55
Summary: Import from phpjs.
Programmer: jj5
Code
1
2
3
4
5
6
7
8
function user_error (error_msg, error_type) {
    // http://jsphp.co/jsphp/fn/view/user_error
    // +   original by: Brett Zamir (http://brett-zamir.me)
    // -    depends on: trigger_error
    // *     example 1: user_error('Cannot divide by zero', 256);
    // *     returns 1: true
    return this.trigger_error(error_msg, error_type);
}
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.