We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f70b978 + 752bab3 commit e85a718Copy full SHA for e85a718
1 file changed
src/WezomAgency/R2D2.php
@@ -119,6 +119,20 @@ public function resourceContent($path)
119
}
120
121
122
+ /**
123
+ * @param string $value
124
+ * @param bool $int
125
+ * @return int|float
126
+ */
127
+ public function str2number($value = '', $int = false)
128
+ {
129
+ if (strpos('%')) {
130
+ return 0;
131
+ }
132
+ return $int ? intval($value) : floatval($value);
133
134
+
135
136
/**
137
* @param string $value
138
* @return string
0 commit comments