php Kleur en positie

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Kleur en positie相关的知识,希望对你有一定的参考价值。

<?php
/**
 * Created by PhpStorm.
 * User: Gebruiker
 * Date: 2/9/2018
 * Time: 9:57
 */

class kleurEnPos
{
	public $kleuren = array( 'oranje', 'blauw', 'groen', 'rood' );
	public $kanten = array('links','midden','rechts');

	function __construct ()
	{
		$this->shuffle();
	}

	public function getCurrent ()
	{
		return current($this->kleuren) .' '.current($this->kanten);
	}
	public function shuffle(){
		shuffle($this->kleuren);
	}
	public function next ()
	{
		if ( next($this->kleuren) === false )
		{
			reset($this->kleuren);
		}
		if ( next($this->kanten) === false )
		{
			reset($this->kanten);
		}
	}
}

$oKleurEnPos = new kleurEnPos();

以上是关于php Kleur en positie的主要内容,如果未能解决你的问题,请参考以下文章

点赞+1飘浮效果的实现

Mac sublime 编译Python UnicodeEncodeError: 'ascii' codec can't encode characters in positi

js的小效果-图片放大镜效果

Python 读取csv报错编码问题 : UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in positi

关于Python脚本通过crontab调度的时候报错UnicodeEncodeError: ‘ascii’ codec can’t encode characters in positi的解决方案

php [Mail en PHP] Mail en php 7.2