Tag Archives: Strings

JavaScript Strings

String data type in JavaScript is used to store a sequence of text values. We generally use the JavaScript string to represent textual data. A string value can have zero or more than zero characters, and to wrap up the string characters we can use single quotes, double quotes or backticks. Example <script> var name1 = “Rohan Singh”;… Read More »

PHP – Strings

PHP – Strings Strings are considered as a sequence of characters. You can use the strings within single or double quotes, without quotes you will not be able to perform string operations. Even if you want an integer to represent as string you can enclose that integer within quotes, it will be typecast as a string. Both single… Read More »

C++ Strings

A String is a one-dimensional array of character data types which ends with a null value represented by ‘\0’. The array of character always terminates with a null value, so if there is a character array(string) of size 6 and it has only 5 elements filled, so the 6th place would be a null value. To initialize a… Read More »