0 Σχόλια
0 Μοιράστηκε
3χλμ. Views
0 Προεπισκόπηση
Αναζήτηση
Ανακάλυψε νέους ανθρώπους, δημιούργησε νέες συνδέσεις και κάνε καινούργιους φίλους
-
Παρακαλούμε συνδέσου στην Κοινότητά μας για να δηλώσεις τι σου αρέσει, να σχολιάσεις και να μοιραστείς με τους φίλους σου!
-
PHP - Modify StringsPHP has a set of built-in functions that you can use to modify strings. Upper Case ExampleGet your own PHP Server The strtoupper() function returns the string in upper case: $x = "Hello World!"; echo strtoupper($x); Try it Yourself » Lower Case Example The strtolower() function returns the string in lower case: $x = "Hello World!"; echo...0 Σχόλια 0 Μοιράστηκε 3χλμ. Views 0 Προεπισκόπηση
-
PHP - Slicing StringsSlicing You can return a range of characters by using the substr() function. Specify the start index and the number of characters you want to return. ExampleGet your own PHP Server Start the slice at index 6 and end the slice 5 positions later: $x = "Hello World!"; echo substr($x, 6, 5); Try it Yourself » Note The first character has index 0. Slice to the...
-
PHP Data TypesPHP Data Types Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers - also called double) Boolean Array Object NULL Resource Getting the Data Type You can get the data type of any object by using the var_dump() function. ExampleGet your own...0 Σχόλια 0 Μοιράστηκε 2χλμ. Views 0 Προεπισκόπηση
-
PHP OperatorsPHP Operators Operators are used to perform operations on variables and values. PHP divides the operators in the following groups: Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators Conditional assignment operators PHP Arithmetic Operators The PHP arithmetic operators are used with...0 Σχόλια 0 Μοιράστηκε 3χλμ. Views 0 Προεπισκόπηση
-
PHP StringsA string is a sequence of characters, like "Hello world!". Strings Strings in PHP are surrounded by either double quotation marks, or single quotation marks. ExampleGet your own PHP Server echo "Hello"; echo 'Hello'; Try it Yourself » Note There is a big difference between double quotes and single quotes in PHP. Double quotes process special characters, single quotes...0 Σχόλια 0 Μοιράστηκε 3χλμ. Views 0 Προεπισκόπηση