小编tec*_*l87的帖子

imagettftext函数使用远程服务器的字体

我在php中创建图像形式字体大小,字体系列,字体颜色.一切都很好,直到我有了新的要求.我使用ttf文件并将imagettftext函数中特定ttf文件的路径作为参数传递.现在我使用谷歌字体,我不知道如何获得我的功能中的字体.我尝试过使用一些东西,比如传球

1.http://fonts.googleapis.com/css?family=Tangerine<br/>
2.http://themes.googleusercontent.com/static/fonts/abel/v3/RpUKfqNxoyNe_ka23bzQ2A.ttf
Run Code Online (Sandbox Code Playgroud)

但没有得到任何东西.

php gd

3
推荐指数
1
解决办法
3025
查看次数

Zend Pagination:如何获得数据

我正在使用zend paginator.我使用$ this-> paginator获得以下结构:



(
   [_cacheEnabled:protected] => 1
    [_adapter:protected] => Zend_Paginator_Adapter_Array Object
        (
            [_array:protected] => Array
                (
                    [0] => Array
                        (
                        )
                    [1] => Array
                         (
                         )
                           )

            [_count:protected] => 8
        )

    [_currentItemCount:protected] => 
    [_currentItems:protected] => 
    [_currentPageNumber:protected] => 1
    [_filter:protected] => 
    [_itemCountPerPage:protected] => 4
    [_pageCount:protected] => 2
    [_pageRange:protected] => 
    [_pages:protected] => 
    [_view:protected] => 
)


Run Code Online (Sandbox Code Playgroud)

我已经使用for循环访问了$ this-> paginator,并且每件事都运行良好.但现在我只想访问[_array:protected] => Array值,并希望使用array_slice将结果拆分为3组.但我无法访问该数组值.我尝试过将其类型转换为数组,但没有得到它.

zend-framework zend-paginator

2
推荐指数
1
解决办法
1910
查看次数

标签 统计

gd ×1

php ×1

zend-framework ×1

zend-paginator ×1