M88asia.
You are not logged in.
The string manipulation is part of the any programmer routine work.
a number of functions, language native, can be used to assist in various activities.
In this post.
in order to assist professionals in tasks of everyday life.
ECHO FUNCTION Despite the name, echo is no longer a function, since its use is not subject to the use of parameters.
Its function is to print on the screen a certain value.
As shown in the example below: echo “Hello World”; ?> EXPLODE FUNCTION This function breaks a string from the value reported in the first parameter.
The breaking string is reported in the second parameter and the function return is given in the form of an array.
As the example: $pizza = “piece1 piece2 piece3 piece4 piece5 piece6”; $pieces = explode(” “, $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 ?> LCFIRST FUNCTION This function is used when you need to leave in small letters the first character of a string.
As example: $foo = ‘HelloWorld’; $foo = lcfirst($foo); //helloWorld ?> UCFIRST FUNCTION This function is used when it is necessary to leave uppercase the first character of a string, as in the following example: $foo = ‘helloworld’; $foo = ucfirst($foo); //HelloWorld ?> SUBSTR FUNCTION The substr() function removes a certain number of elements of a string.
The function takes as first parameter the string and, following, the value of exclusion.
This can be positive or negative, as the example: echo substr(‘abcdef’, 1); // returns bcdef $rest = substr(“abcdef”, -1); // returns “f” ?> STRINGS ON SCRIPTCASE To program using Scriptcase you must use PHP language, .
we have more the 150 macros to help you out to develop even more faster.
Here is an example of a Scriptcase Macro: sc_lookup(Dataset, “SQL Command”, “Connection”) This macro allows the user to execute SQL commands and returns the result to the “dataset” variable.
The “dataset” structure is an array (line/column).
The “connection” parameter is optional.
Use when the command is executed in a database different from that specified for the application.
Ex.
1: sc_lookup(dataset, “select customer_id, customer_name.
use : {customer_id} = {dataset[0][0]}; {customer_name} = {dataset[0][1]}; {credit_limit } = {dataset[0][2]}; To have access to the second line (Dataset), use: {customer_id} = {dataset[1][0]}; {customer_name} = {dataset[1][1]}; {credit_limit} = {dataset[1][2]}; If occurs error in the execution of the SQL command, the variable attributed to the dataset will return as “false” and the error message will be available in the “dataset_erro” variable.
It is also important to verify the select returned data, to prevent access to inexistent variables, once the output array only will be created if the select command returns data.
Ex.
2: sc_lookup(my_data, “select customer_id, customer_name, .
Message=”.
{my_data_erro} ; } elseif (empty({my_data})) { echo “Select command didn’t return data”; } else { {customer_id} = {my_data[0][0]}; {customer_name} = {my_data[0][1]}; {credit_limit} = {my_data[0][2]}; } Ex.
3: The SQL command also can be composed of application fields (local variables) or of global variables: sc_lookup(dataset, “select order_value from orders where clienteid = ‘{customer_id} ‘ and salesman_id = [var_glo_salesman]”); Note: The command must always finished with semicolon “;”.
Note2: For a big result returned in the dataset we recomend the use of the macro sc_selec instead of this one.
Check the full macro list: http://www.scriptcase.net/docs/en_us/v8/manual_mp.htm#scriptcase-macros/scriptcase-macros The post Working with Strings in PHP appeared first on Scriptcase Blog.
.
Offline
отдать бабушку в дом престарелых или пансионат для престарелых щелково
https://xn--80aaxtbfdsn.xn--80adxhks/kontakty/
Offline
дом престарелых социальное учреждение или дом престарелых в области спб
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-fotografii/
Offline
Offline
стоимость пансионата для престарелых или найти дома престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/aktsiya/
Offline
частный пансионат для престарелых в московской области или дом для пожилых людей
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/delikatnyy-podkhod-dementsiya-altsgeymera/
Offline
дом престарелых в области спб или бюджетный дом престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/
Offline
частные пансионаты для престарелых в подмосковье или дом престарелых район
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/delikatnyy-podkhod-dementsiya-altsgeymera/
Offline
оформление в дом престарелых в москве или частный пансионат для престарелых москва
https://xn--80aaxtbfdsn.xn--80adxhks/privacy-policy/
Offline
как устроить родственника в дом престарелых или дом интернат для престарелых адрес
https://xn--80aaxtbfdsn.xn--80adxhks/kontakty/
Offline
как попасть в дом престарелых в москве или как устроить бабушку в дом престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/category/uncategorized/
Offline
дом для пожилых людей в подмосковье или пансионаты для престарелых в москве недорого
https://xn--80aaxtbfdsn.xn--80adxhks/poleznye-stati/
Offline
пансионаты для престарелых в москве места или как отдать человека в дом престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/pomoshch-pozhilym-lyudyam-na-domu/
Offline
дом престарелых в московской области адреса или в доме престарелых находятся
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/pomosh-pri-podgotovke-med-documentov/
Offline
дом престарелых социальное учреждение или платный пансионат для пожилых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/pomoshch-pozhilym-lyudyam-na-domu/
Offline
дом престарелых цены за год или дом интернат для престарелых и пожилых
https://xn--80aaxtbfdsn.xn--80adxhks/pansionat-ili-sidelka/
Offline
дома для проживания пожилых людей или дом престарелых пансионат московская область
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/consultacia-po-telephonu/
Offline
дом престарелых недорого или оформить в дом престарелых в москве
https://xn--80aaxtbfdsn.xn--80adxhks/category/uncategorized/
Offline
дома престарелых пожилых женщин или как устроить пожилого в дом престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/consultacia-po-telephonu/
Offline
дом престарелых пансионат для пожилых или дом для пожилых москва
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/consultacia-po-telephonu/
Offline
дом престарелых пансионат для пожилых или пансионат для пожилых цены
https://xn--80aaxtbfdsn.xn--80adxhks/kak-ponyat-chto-vashih-pozhilyh-rodstvennikov-nachinaetsya-demenciya/
Offline
сколько стоит содержание в доме престарелых или частный дом для пожилых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/pomosh-pri-pereezde/
Offline
найти дома престарелых или дом престарелых для лежачих
https://xn--80aaxtbfdsn.xn--80adxhks/aktsiya/
Offline
пансионаты для пожилых в подмосковье или как устроить пожилого в дом престарелых
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/consultacia-po-telephonu/
Offline
сходня пансионат для престарелых или частный пансионат для престарелых москва
https://xn--80aaxtbfdsn.xn--80adxhks/nashi-uslugi/pomoshch-pozhilym-lyudyam-na-domu/
Offline