`
kirenenko04
  • 浏览: 147233 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

get the first numeric position from a string

    博客分类:
  • php
 
阅读更多
	public function explode_sku($sku) {
		$sku_arr = str_split($sku);
		foreach ($sku_arr as $key=>$val) {
			if (is_numeric($val)) {
				return $key;
			}
		}
		return false;
	}

 

分享到:
评论

相关推荐

    数位板压力测试

    The device must have a point-ing ap¬para¬tus or method (such as a stylus, or a finger touching a touch pad), called the cursor, that de¬fines the current position. The cursor must be able to ...

    Python Cookbook, 2nd Edition

    Trimming Space from the Ends of a String Recipe 1.6. Combining Strings Recipe 1.7. Reversing a String by Words or Characters Recipe 1.8. Checking Whether a String Contains a Set of Characters ...

    超值的数值分析源码程序 Numerica lRecipes

    积分运算, 数值分析, 矩阵运算, SVD分解, 随机数, 边界值问题等, 源码算法

    《Numeric Computation and Statistical Data Analysis on the Java Platform》高清完整英文PDF版

    The author focuses on practical programming aspects and covers a broad range of topics, from basic introduction to the Python language on the Java platform (Jython), to descriptive statistics, ...

    plsqldev13.0.0.1882x32主程序+ v12中文包+keygen

    The "Go to line" function now has an option to move relative from the start of the text, from the cursor position, or from SQL start position: The editor now highlights corresponding value ...

    微软内部资料-SQL性能优化5

    Each index row in node pages contains an index key (or set of keys for a composite index) and a pointer to a page at the next level for which the first key value is the same as the key value in the ...

    在字符串中寻找子字符串

    Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1.

    动态规划:最长单调递增子序列

    A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ..., aiK), where 1 , sequence (1, 7, 3, 5, 9, ...

    Sakemail

    .- Reduced the line sleep to 30 (tell me if this value doesn‘t work for you).27/4/981.7.0- Fixed a memory leak, thanks to Don Higgins.- Moved the string esErrorInFormatOfMsg to a property of SakPOP.-...

    Python in a Nutshell. A Desktop Quick Reference

    This book is aimed at programmers with some previous exposure to Python, as well as experienced programmers coming to Python for the first time from other languages. The book is a quick reference to ...

    华南理工大学计算机全英班编译原理实验1

    The right bracket of a STRING is lost, such as ' scanner The right delimiter of a comment is lost, such as: {this is an example Requirements 1Write your program in C or C++ 2This experiment must ...

    UE(官方下载)

    This power tip demonstrates how to calculate the sum from a column of numeric data. Column mode How to use the features of UltraEdit's powerful column mode Advanced and column-based sort How to sort ...

    numeric recipes fortran77 code

    数值方法 numeric recipes fortran77 (第二版)源代码。 网址:http://www.nr.com

    BUS Hound

    If you need to get as much space as possible, besides adding more RAM to a system you can also try setting the buffer size before starting other applications. Note: allocating a very large buffer ...

    纯js实现人脸识别numeric.js

    纯js实现人脸识别numeric.js纯js实现人脸识别numeric.js纯js实现人脸识别numeric.js纯js实现人脸识别numeric.js

    8596 最长上升子序列

    The first line contains the length of sequence N. The second line contains the elements of sequence - N integers in the range from 0 to 10000 each, separated by spaces. 1 When N is 0, it indicates...

    Oracle sqldeveloper without jdk (win+linux)

    - Bug 5085334: If a numeric value is opened for editing in the Data tab for the first time after the table is refreshed, the decimal separator will always become dot, irrespective of the locale ...

    Chinese Std GBT7714 (numeric) Copy.ens

    Chinese Std GBT7714 (numeric) Copy.ens文件

    C in a Nutshell, Second Edition

    The first part is a fast-paced description, reminiscent of the classic "Kernighan & Ritchie" text on which many C programmers cut their teeth. It focuses specifically on the C language and ...

    从数据类型 nvarchar 转换为 numeric 时出错.pdf

    用友T+从数据类型 nvarchar 转换为 numeric 时出错.pdf

Global site tag (gtag.js) - Google Analytics