[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

Common PHP Functions and the SparForte Equivalent


Arrays

          PHP          SparForte Equivalent
          array_sum    arrays.sum
          asort        arrays.bubble_sort
                       arrays.heap_sort
          count        arrays.length
          shuffle      arrays.shuffle
          rsort        arrays.bubble_sort_descending
                       arrays.heap_sort_descending

Numbers

          PHP          SparForte Equivalent

          abs          abs
          acos         numerics.arccos
          acosh        numerics.arccosh
          asin         numerics.asin
          asinh        numerics.asinh
          atan         numerics.atan
          atanh        numerics.atanh
          base_convert #base#
                       put
          bindec       #base#
                       put
          ceil         numerics.ceiling
          cos          numerics.cos
          cosh         numerics.cosh
          decbin       #base#
                       put
          dechex       #base#
                       put
          decoct       #base#
                       put
          deg2rad      use appropriate cycle
          exp          numerics.exp
          floor        numerics.floor
          fmod         numerics.remainder
          hexdec       #base#
                       put
          log10        numerics.log
          log          numerics.log
          max          stats.max
                       numerics.max
          min          stats.min
                       numerics.min
          octdec       #base#
                       put
          pi           numerics.pi
          pow          **
          rad2deg      use appropriate cycle
          rand         numerics.random
                       numerics.rnd
          round        numerics.rounding
                       numerics.unbiased_rounding
          sin          numerics.sin
          sinh         numerics.sinh
          sqrt         numerics.sqrt
          tan          numerics.tan
          tanh         numerics.tanh

Strings

          PHP          SparForte Equivalent
          chr         strings.val
          substr_count strings.count
          echo        put
                      put_line
                      new_line
          explode     strings.field
                      strings.lookup
                      strings.csv_field
                      strings.delete
                      strings.insert
          implode     strings.replace
                      strings.csv_replace
                      strings.delete
                      strings.insert
          ltrim       strings.trim
          md5         strings.md5
          rtrim       strings.trim
          ord         strings.pos
          printf      put
          strpos      strings.index
          str_pad     strings.head
          str_repeat  *
          str_replace strings.replace
                      strings.replace_slice
                      strings.delete
                      strings.insert
          strstr      strings.pos
          strchr      strings.pos
          substr      strings.head
                      strings.tail
                      strings.slice
                      strings.element
          strlen      strings.length
          trim        strings.trim
          strtolower  strings.to_lower
          strtoupper  strings.to_upper
          locateconv  strings.to_basic
          ucwords     strings.to_proper
          wordwrap    strings.split
[Right Submenu]

 AdaScript versus GCC

 Case Sensitivity

 Reserved Words

 Comments

 Literals

 Bourne Shell Word Expansions

 Fundamental Types

 User-defined Types

 Enumerated Types

 Arrays

 Records

 Basic Assignment

 The @ and % Operands

 Command Argument Shortcuts

 Redirection and Pipelines

 Command Line Interaction

 Built-in Shell Commands

 The Current Directory

 Database Commands

 Flow of Control

 Other Statements/ Subprograms

 External Commands

 Block Statements and Subprograms

 TCP/IP Sockets

 Numeric Formatting with Put

 Interpreter Directives

 Command Line Options

 Command Reference

 ASCII and Latin_1 Character Sets

 Common Error Messages

 Common PHP Functions and the SparForte Equivalent

[Back to Top] Back To Top [Small Forte Symbol]