This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftyJSON | |
class ViewController: UIViewController { | |
var cJson:JSON = ["id":1,"name":"a","age":20,"sex":"m"] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
let testData_a = ["0","1","3","0","2"] | |
let testData_b = ["1","2","3","4","5"] | |
let testData_c = ["1","0","3","2","0"] | |
@IBOutlet weak var testBtn_a: UIButton! | |
@IBOutlet weak var testBtn_b: UIButton! | |
@IBOutlet weak var testBtn_a: UIButton! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Here your code ! | |
$array = array("A", "*", "A", "world"); | |
$result = array_count_values($array); | |
$aa = $result[$array[0]]; | |
$bb = $result[$array[3]]; | |
echo $bb; | |
// if($bb>=0){ | |
// $aa+=1; | |
// } |