diff --git a/reference/spl_types/book.xml b/reference/spl_types/book.xml index 940f8a4ccb..1c569f7fcc 100644 --- a/reference/spl_types/book.xml +++ b/reference/spl_types/book.xml @@ -1,5 +1,5 @@ - + @@ -11,8 +11,9 @@ &reftitle.intro; This extension aims at helping people making PHP a stronger typed - language. It provides different typehandling classes as such as - integer, float, bool, enum, etc. + language and can be a good alternative to scalar type hinting. + It provides different typehandling classes as such as + integer, float, bool, enum and string &warn.experimental; @@ -22,6 +23,7 @@ &reference.spl-types.splfloat; &reference.spl-types.splenum; &reference.spl-types.splbool; + &reference.spl-types.splstring; diff --git a/reference/spl_types/splfloat/construct.xml b/reference/spl_types/splfloat/construct.xml index 4b717a6c35..6d688e2177 100644 --- a/reference/spl_types/splfloat/construct.xml +++ b/reference/spl_types/splfloat/construct.xml @@ -1,5 +1,5 @@ - + SplFloat::__construct @@ -10,7 +10,10 @@ &reftitle.description; SplFloat::__construct - + + float + input + This constructs a new object of type float. diff --git a/reference/spl_types/splint/construct.xml b/reference/spl_types/splint/construct.xml index de5928391a..70a57b4875 100644 --- a/reference/spl_types/splint/construct.xml +++ b/reference/spl_types/splint/construct.xml @@ -1,5 +1,5 @@ - + SplInt::__construct @@ -10,10 +10,13 @@ &reftitle.description; SplInt::__construct - + + integer + input + - This constructs a new object of type float. + This constructs a new object of type integer. diff --git a/reference/spl_types/splstring.xml b/reference/spl_types/splstring.xml new file mode 100755 index 0000000000..c24410fd95 --- /dev/null +++ b/reference/spl_types/splstring.xml @@ -0,0 +1,63 @@ + + + + The SplString class + SplString + + + + +
+ &reftitle.intro; + + The SplString class is used to enforce strong typing of the string type. + +
+ + +
+ &reftitle.classsynopsis; + + + + SplString + + + + + SplString + + + + + + Methods + + + +
+
+ + &reference.spl-types.entities.splstring; +
+ +