Len


Definition: Returns the number of characters in a string or the number of bytes required to store a variable.

 

The “length” of a string is simply the number of characters contained in that string. In Windows PowerShell you can determine the length of a string by retrieving the value of the aptly-named Lengthproperty. In this example we stored the 26 letters of the English alphabet in a variable named $a, then assign the length of that string to the variable $b:

 

$a = " abcdefghijklmnopqrstuvwxyz"
$b = $ a.length

 

When you run this command and then echo back the value of $b you should get the following:

 

26

 

 

 

 

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.