Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Path to Linux / Unix Systems Administrator Post 302415559 by sideburn on Thursday 22nd of April 2010 11:30:49 PM
Old 04-23-2010
@pludi & Celtic_Monkey: Thanks for giving me some ideas...what about lab workbooks that would give me hand-on projects?

@jhtrice: How do I find a mentor or guru? Should I seek one in my city ( San Diego, CA ) or would an online mentor/guru work?

@rhfrommn: Thanks for your insights! I noticed even part-time entry level system admin still requires some experiences. Its like egg & chicken theory. Maybe volunteer / intern work would be easier to set foot in the door. Another idea would be local user groups?
 

2 More Discussions You Might Find Interesting

1. What is on Your Mind?

Unix Administrator and Linux Administrator transition

Hello Unix Experts, I'm going to be graduating with a CIS (Computer Information Systems) degree in the coming year. I have been offered an internship with a job title of Unix Administrator under a well known company. I understand that Unix is used for high-end servers in many large... (1 Reply)
Discussion started by: brentmd24
1 Replies

2. Advertise with Us

UNIX Systems Administrator Opportunity

Optiver is a worldwide market maker and derivatives trading firm with offices strategically located in Chicago, Amsterdam and Sydney. Attracting very ambitious, talented and results-oriented individuals to become members of a highly selective trading and support group is a primary contributor to... (0 Replies)
Discussion started by: Barb S.
0 Replies
COMPACT(3)								 1								COMPACT(3)

compact - Create array containing variables and their values

SYNOPSIS
array compact (mixed $varname1, [mixed $...]) DESCRIPTION
Creates an array containing variables and their values. For each of these, compact(3) looks for a variable with that name in the current symbol table and adds it to the output array such that the variable name becomes the key and the contents of the variable become the value for that key. In short, it does the opposite of extract(3). Any strings that are not set will simply be skipped. PARAMETERS
o $varname1 -compact(3) takes a variable number of parameters. Each parameter can be either a string containing the name of the variable, or an array of variable names. The array can contain other arrays of variable names inside it; compact(3) handles it recursively. RETURN VALUES
Returns the output array with all the variables added to it. EXAMPLES
Example #1 compact(3) example <?php $city = "San Francisco"; $state = "CA"; $event = "SIGGRAPH"; $location_vars = array("city", "state"); $result = compact("event", "nothing_here", $location_vars); print_r($result); ?> The above example will output: Array ( [event] => SIGGRAPH [city] => San Francisco [state] => CA ) NOTES
Note Gotcha Because variable variables may not be used with PHP's Superglobal arrays within functions, the Superglobal arrays may not be passed into compact(3). SEE ALSO
extract(3). PHP Documentation Group COMPACT(3)
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy