- 博客(5)
- 收藏
- 关注
原创 explode
函数说明 array explode ( string $delimiter, string $string, [, int $limit ] ) 实现流程判断参数 $limit 默认为 PHP_INT_MAX 判断分隔符是否为空,如果为空返回 false 判断字符串长度,如果字符串为空且 $limit >= 0,返回一个包含空字符串的数组 执行逻辑 根据 $limit 值执行不同逻辑 $
2017-04-27 18:03:33 527
原创 193. Valid Phone Numbers#1
题目摘要 从文件里筛选出电话号码,电话号码有两种格式 (xxx) xxx-xxxx 和 xxx-xxx-xxxx。假设每行头尾都没有空格。解法注意可问问题原题 Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print a
2017-04-21 17:46:12 279
原创 195. Tenth Line#1
题目摘要 答应文件第10行解法 1. 2. 注意 1. 如果文件没有10行,输出什么?可问问题原题 How would you print just the 10th line of a file?For example, assume that file.txt has the following content: Line 1 Line 2 Line 3 Lin
2017-04-21 17:34:57 218
原创 184. Department Highest Salary#1
题目摘要 选出每栋Department中薪水最高的人(每栋楼不知一个)解法 Solution1# Write your MySQL query statement below SELECT d.Name AS Department, e.Name As Employee, e.Salary From Employee AS e INNER JOIN ( SELECT max(Salary
2017-04-12 09:30:25 225
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人