Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What in the world does $$ mean? Post 302388177 by weexpectedthis on Tuesday 19th of January 2010 04:11:24 PM
Old 01-19-2010
What in the world does $$ mean?

If I type "echo $$" in to the command line it outputs some random number but it outputs the same one every time. What is this?
 

7 More Discussions You Might Find Interesting

1. Solaris

hello world

just wanted to give salutations to all in here. i hope to contribute as much as i take. happy "unix-ing" :b: (0 Replies)
Discussion started by: JeepResQ
0 Replies

2. What is on Your Mind?

What The World Needs Now...

What does the world need now.... ??? Feel free to suggest new items to the poll .... we might add them :) (25 Replies)
Discussion started by: Neo
25 Replies

3. Programming

Almost -> Hello World!

Hello! I know I must take the efforts of learning C..! I need to recompile a binary with the following at the beginning: test if a file exists, remove it and exit. All in "C". As simple as this in sh: file=/tmp/filename if ; then rm -f $file exit 0 fi Thanks! (8 Replies)
Discussion started by: teresaejunior
8 Replies

4. What is on Your Mind?

How Will the World End?

How will the world end (someday long into the future, we hope)? (68 Replies)
Discussion started by: Neo
68 Replies

5. Programming

Exact meaning of the "world" in "hello world"

Hello! I have a question to native English-speaking people. In the popular program's "hello world" greeting, what meaning the "world" has: "all", "everybody", "people", "friends" or "whole world", "planet", "Earth", "Universe"? In other words, to whom this greeting is addressed: to the... (14 Replies)
Discussion started by: Eugene Muzychen
14 Replies

6. What is on Your Mind?

Hello World!

Just wanna say "Hello World!" :) (6 Replies)
Discussion started by: ment0smintz
6 Replies

7. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies
STRISTR(3)								 1								STRISTR(3)

stristr - Case-insensitivestrstr(3)

SYNOPSIS
string stristr (string $haystack, mixed $needle, [bool $before_needle = false]) DESCRIPTION
Returns all of $haystack starting from and including the first occurrence of $needle to the end. PARAMETERS
o $haystack - The string to search in o $needle - If $needle is not a string, it is converted to an integer and applied as the ordinal value of a character. o $before_needle - If TRUE, stristr(3) returns the part of the $haystack before the first occurrence of the $needle (excluding needle). $needle and $haystack are examined in a case-insensitive manner. RETURN VALUES
Returns the matched substring. If $needle is not found, returns FALSE. CHANGELOG
+--------+-----------------------------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------------------------+ | 5.3.0 | | | | | | | Added the optional parameter $before_needle. | | | | | 4.3.0 | | | | | | | stristr(3) was made binary safe. | | | | +--------+-----------------------------------------------+ EXAMPLES
Example #1 stristr(3) example <?php $email = 'USER@EXAMPLE.com'; echo stristr($email, 'e'); // outputs ER@EXAMPLE.com echo stristr($email, 'e', true); // As of PHP 5.3.0, outputs US ?> Example #2 Testing if a string is found or not <?php $string = 'Hello World!'; if(stristr($string, 'earth') === FALSE) { echo '"earth" not found in string'; } // outputs: "earth" not found in string ?> Example #3 Using a non "string" needle <?php $string = 'APPLE'; echo stristr($string, 97); // 97 = lowercase a // outputs: APPLE ?> NOTES
Note This function is binary-safe. SEE ALSO
strstr(3), strrchr(3), stripos(3), strpbrk(3), preg_match(3). PHP Documentation Group STRISTR(3)
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy