PowerShell Learning Notes

Source: Internet
Author: User

Array in fact in any language is a relatively headache learning object, in learning PowerShell free time, do the following simple finishing:

1. In the PowerShell, as long as the different objects with commas "," connected, you can construct the array of objects.

For example: 520, ' abc ', 2mb,0xfffe

520

ABC

2097152

65534

The small example above outputs 4 objects: The value "520", the string "abc", the Numeric "2MB" and the hexadecimal value "0xFFFE".

2. More features about array objects:

$array = 1,2,3,4,5

$int = 1

$array. Count

5

"$array"

1 2 3 4 5

$int. Count

"$int"

1

The above $int is an integer, not an array.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.