The strncasecmp() function is used to compare a case-sensitive string of the first ‘n’ character. This function was introduced in PHP4. The comparison is case-insensitive—that is, “Alphabet” and “alphabet” are considered equal. This function is a case-insensitive version of strcmp(). If either string is shorter than length characters, the length of that string determines how […]
Archives for April 2022
SAP TP and R3trans Commands
TP and R3trans Commands You can search the commands here. Command Description tp export : The complete objects in the request from the source system will be transported. This command also Used by SAP System when it releases a request. tp r3e : R3trans export of one transport request. tp sde : Application defined objects in one transport […]
10pt loadable: Metric (TFM) file not found
LaTeX is a software for typesetting documents. In other words, it’s a document preparation system. LaTeX is not a word processor, but is used as a document markup language. LaTeX is especially well-suited for scientific and technical documents. Its superior typesetting of mathematical formulas is legendary. If you are a student or a scientist, then […]
Shell Script to print pyramid of Stars
The Basics So here we will print the pyramid of stars in two parts as shown below. We will loop through the number provided by the user and print the first half of the stars using a for loop and other half using another for loop. The spaces and new line characters are added in […]
Shell/Bash Script to Find Prime Numbers in Linux
A prime number is a whole number that has exactly 2 different factors, 1 and itself. A number that is not a prime number will be called composite. Except 1 each natural number that is divisible by only 1 and itself is called a prime number. For example: 2,3,5,7,11,13,17,19,23,29… etc. There are total 25 prime […]
nm : Command to list the symbols in object files.
nm displays the name list (symbol table of nlist structures) of each object file in the argument list. If you want to peep into an object file and see what are the various symbols that are defines in it the command will come handy. It takes an object file as input and lists out all […]
PHP function strlen() – Get string length
The strlen() function is used to return the length of a specific string. This function was introduced in PHP3. The strlen() function takes just one parameter (the string) and returns the number of characters in it. Syntax: strlen(string $string): int Behind the scenes, strlen() actually counts the number of bytes in your string, as opposed […]
PHP function stripslashes() – Un-quotes a quoted string
The stripslashes() function is used to unquote a string that is quoted by using the addslashes() function. This function was introduced in PHP3. The stripslashes() function is the opposite of addslashes(): it removes one set of \-escapes from a string. Syntax: stripslashes(string $string): string To remove backslashes and convert C-style escape sequences to their literal […]
PHP function stripcslashes() – Un-quote string quoted with addcslashes()
stripcslashes() converts C-style escape sequences (\, \a, \b, \f, \n, \r, \t, \v, and \x hh hex and \ ooo octal character escape sequences) to their literal equivalents. Additionally, it strips the backslash from escape sequences that it doesn’t recognize. You can specify ranges of characters by separating them by two periods; for example, to […]
PHP function strcmp() – Binary safe string comparison
The strcmp() function is used to compare two case-sensitive strings. This function was introduced in PHP3. The function basically compares two strings; returns a number less than 0 if one is less than two, 0 if the two strings are equal, and a number greater than 0 if one is greater than two. The comparison […]