BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list /

 
  ARRAY 2484 0
#ARRAY# is an independent function
Rights to use this function #ARRAY#:
  • BASIC

  • #ARRAY# Manages and manipulates #$arrayer[+]#

    values:  defaults:  description:
    valueManage $array/$array[+]
    typewordno=$post_name tar ut contents from element no
    searchIf needle är contents from ett element returneras ellementets pekaren: $array[$pekare]
    upperSätter VERSALER for all element
    lowerSätter gemener for all element
    shuffleBlandar ordningen for arrayen
    invInverterar ordningen for arrayen
    sortSorterar arrayens value efter 1 2 3 A B C
    keySorterar arrayens value efter Elementname
    uniqueTar bort foregående elementet if fler of samma värde
    sumSummerar all value in value=$array
    countRäknar amount element in value=$array
    returnreturn=variable stores the results in $variable

    Example:
    #$arr[+](ONE TWO THREE EIGHT FOUR FIVE SIX SEVEN EIGHT)#

    arr(#$arr[+]#)<br>

    #ARRAY type(inv unique inv lower) value=$arr#
    // Inverterar, tar bort forsta of all lika element, eftersom vi vänt on arrayen tar den bort den forsta "EIGHT"
    // Snurrar back arrayen and gör all bokstäver to gemener


    new(#$arr[+]#)

    Returns:
    arr(ONE TWO THREE EIGHT FOUR FIVE SIX SEVEN EIGHT)
    new(one two three four five six seven eight)

    #$a[+](1 2 3 4 5)#

    SUM(#ARRAY type=sum value=$a#)<br>
    COUNT(#ARRAY type=count value=$a#)<br>

    #ARRAY type=search needle=4 value=$a return=b#
    SEARCH(#$b#)<br>
    $a[#$b#](#$a[$b]#)

    Returns:
    SUM(15)
    COUNT(5)
    SEARCH(3)
    $a[3](4)

    More information:
  • #STR#
  • #SUM#
  • #DO#
  • Array handling
  • array
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0781 seconds