lang($line[, $for = ''[, $attributes = array()]])
Parameters: |
|
---|---|
Returns: |
The language line; in an HTML label tag, if the |
Return type: |
string |
This function returns a line of text from a loaded language file with simplified syntax that may be more desirable for view files than CI_Lang::line()
.
Examples:
1 2 3 4 5 | echo lang( 'language_key' ); // Outputs: Language line echo lang( 'language_key' , 'form_item_id' , array ( 'class' => 'myClass' )); // Outputs: <label for="form_item_id" class="myClass">Language line</label> |
Please login to continue.