Oracle trim, ltrim, rtrim function usageThis function has two functions:First, remove spaces that everyone is familiar.Example:-- Trim removes leading and trailing spaces of a specified characterSQL> select trim ('dd df') from dual;Trim ('dddf ')------------Dd DF
-- Ltrim removes spaces before a specified characterSQL> select ltrim ('dd df') from dual;Ltrim ('dddf ')-------------Dd DF
-- Rtrim removes space
Tags: log lan stripped space string span trim http RTrim (DDDTrim,ltrim,rtrim function usage in OracleTrim,ltrim,rtrim function usage in OracleThere are two kinds of functions in this function:the first, that is, everyone is more familiar with the removal of space. Example:--trim to remove spaces before and after a specified charactersql> SELECT TRIM (' DD DF ') from dual;TRIM (' Dddf ')------------DD DF--ltrim Remove the front space of the specified
There are two kinds of functions in this function:the first, that is, everyone is more familiar with the removal of space. Example:--trim to remove spaces before and after a specified charactersql> SELECT TRIM (' DD DF ') from dual;TRIM (' Dddf ')------------DD DF--ltrim Remove the front space of the specified charactersql> SELECT LTRIM (' DD DF ') from dual;LTRIM (' Dddf ')-------------DD DF--rtrim remove
($ ti Tle, $ xdata, $ ydata, $ seriesName) {$ this-> title = $ title; $ this-> xdata = $ xdata; $ this-> ydata = $ ydata; $ this-> seriesName = $ seriesName; $ this-> color = array ('# dc',' # B ',' # edb', '# DDDF ', '# cbe',' # E', '# ff',' # fff', '# AFC');}/** public method, set the color of the bar chart * Array color Array. The value of the element is '# dc'. */function setBarColor ($ color) {$ this-> color = $ color ;} /** draw a line chart */
, you need to clear all memory resources occupied by the canvas in time.
Use GD to draw a line chart in php. the code is as follows:
Class Chart {private $ image; // defines the image private $ title; // defines the title private $ ydata; // defines the y axis data private $ xdata; // define the x-axis data private $ seriesName; // define the name private $ color for each series of data; // define the bar chart color private $ bgcolor; // define the image background color private $ width; // de
;color = Array (' #DC ', ' #B ', ' #EDB ', ' #DDDF ', ' #CBE ', ' #E ', ' #FF ', ' #FFF ', ' #AFC '); /* * Public method, set the color of the bar chart * array color color arrays, the element value is ' #DC ' this form */function Setbarcolor ($color) {$this->color = $c
Olor;
* * * Draw line chart/Public function Paintlinechart () {$ydataNum = $this->arraynum ($this->ydata);//Get the number of data packets $max = $this->arraymax ($this->ydata);
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.