08-03-2018
Hi Neo...
I agree with Ravinder here they are OK AFAIAC.
6 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Can you guys please enable the "dotted" icon option, so that the thread icon for a thread in which a user has posted in will appear with a dot in it?
Thanks,
Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies
2. Programming
Hello everyone,
After 8 years of being out of school I am trying to start my Masters degree. This specific type of degree is being done only by research (research mode vs. coursework mode). I need to prepare a research proposal and send it to the school. I will need a professor to accept me as a... (2 Replies)
Discussion started by: wmac
2 Replies
3. UNIX for Dummies Questions & Answers
hi friends i have just completed my graduation and applied for Post graduation
i have to submit a research proposal of OS in the interview
i m a beginner & only read galvin & silbershcatz book on operating systems
can anyone help me in that ...
thanks in advance (3 Replies)
Discussion started by: iet.manish
3 Replies
4. Forum Support Area for Unregistered Users & Account Problems
Hello. I've been reading the feed via twitter for a long time, but though i'm willing to help, i can't post and register (russia's banned). IP is dynamic, it's (<ip address>) for now.
DevOps, RH, python and unix shell scripting. (5 Replies)
Discussion started by: spider_fingers
5 Replies
5. Shell Programming and Scripting
Dear Experts,
Kindly help me please,
I have a big file where there is duplicate values in col 11 till col 23, every 2 rows appers a new numbers, but in each row there is different coordinates x and y in col 57 till col 74.
Please i will like to get a single value and average of the x and y... (8 Replies)
Discussion started by: jiam912
8 Replies
6. What is on Your Mind?
Hey,
I am thinking to get rid of the old and clunky member profile pages and replace with a prototype from Brad at Traversy Media.
Here is the prototype:
Welcome To My Portfolio
Basically, I will take the links in the user profile page and put them into the new format when I have time.... (3 Replies)
Discussion started by: Neo
3 Replies
LEARN ABOUT PHP
array_rand
ARRAY_RAND(3) 1 ARRAY_RAND(3)
array_rand - Pick one or more random entries out of an array
SYNOPSIS
mixed array_rand (array $array, [int $num = 1])
DESCRIPTION
Picks one or more random entries out of an array, and returns the key (or keys) of the random entries.
PARAMETERS
o $array
- The input array.
o $num
- Specifies how many entries should be picked.
RETURN VALUES
When picking only one entry, array_rand(3) returns the key for a random entry. Otherwise, an array of keys for the random entries is
returned. This is done so that random keys can be picked from the array as well as random values. Trying to pick more elements than there
are in the array will result in an E_WARNING level error, and NULL will be returned.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
|5.2.10 | |
| | |
| | The resulting array of keys is no longer shuf- |
| | fled. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
array_rand(3) example
<?php
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "
";
echo $input[$rand_keys[1]] . "
";
?>
SEE ALSO
shuffle(3).
PHP Documentation Group ARRAY_RAND(3)