ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:substr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v5:reference:connection:substr [2016/04/10 23:42]
mnewnham
v5:reference:connection:substr [2016/04/10 23:42]
mnewnham
Line 6: Line 6:
   string substr(   string substr(
       string $fieldName,       string $fieldName,
-      int $offset,+      int $startPoint,
       optional int $length       optional int $length
       )       )
Line 16: Line 16:
 The fieldname to be substringed. The fieldname must be accessible as part of the current SQL statement. The fieldname to be substringed. The fieldname must be accessible as part of the current SQL statement.
  
-==== $startpoint ​====+==== $startPoint ​====
 The starting point within the original string for the substring to begin. Offsets in SQL statements are 1 based, rather than the normal 0 (Zero) based offsets used in PHP. The starting point within the original string for the substring to begin. Offsets in SQL statements are 1 based, rather than the normal 0 (Zero) based offsets used in PHP.
  
v5/reference/connection/substr.txt ยท Last modified: 2016/04/10 23:42 by mnewnham