Sponsored Content
Full Discussion: Help in backreferences
Top Forums UNIX for Dummies Questions & Answers Help in backreferences Post 302914679 by junior-helper on Wednesday 27th of August 2014 09:14:58 AM
Old 08-27-2014
Quote:
Originally Posted by shellscripting
Code:
 # grep "\(["']\).*\1" file
>

Request to throw some light on this error
Code:
# grep "\([\"']\).*\1" file

This User Gave Thanks to junior-helper For This Post:
 
ARRAY_COUNT_VALUES(3)							 1						     ARRAY_COUNT_VALUES(3)

array_count_values - Counts all the values of an array

SYNOPSIS
array array_count_values (array $array) DESCRIPTION
array_count_values(3) returns an array using the values of $array as keys and their frequency in $array as values. PARAMETERS
o $array - The array of values to count RETURN VALUES
Returns an associative array of values from $array as keys and their count as value. ERRORS
/EXCEPTIONS Throws E_WARNING for every element which is not string or integer. EXAMPLES
Example #1 array_count_values(3) example <?php $array = array(1, "hello", 1, "world", "hello"); print_r(array_count_values($array)); ?> The above example will output: Array ( [1] => 2 [hello] => 2 [world] => 1 ) SEE ALSO
count(3), array_unique(3), array_values(3), count_chars(3). PHP Documentation Group ARRAY_COUNT_VALUES(3)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy